nix-dotfiles/modules/system/default.nix

40 lines
893 B
Nix
Raw Normal View History

2023-11-19 19:31:04 -08:00
{ config, pkgs, lib, ... }:
{
# Use the systemd-boot EFI boot loader.
2024-02-17 18:06:27 -08:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2023-11-19 19:31:04 -08:00
boot.loader.systemd-boot.enable = true;
2024-02-17 18:06:27 -08:00
boot.loader.timeout = 1;
2023-11-19 19:31:04 -08:00
boot.loader.efi.canTouchEfiVariables = true;
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
# "Essential" Packages
environment.systemPackages = with pkgs; [
git
neovim
nnn
xdg-user-dirs
];
# XDG Compliance
2024-02-16 18:19:19 -08:00
xdg.portal.config.common.default = "*";
2023-11-19 19:31:04 -08:00
environment.sessionVariables = rec {
XDG_CONFIG_HOME = "\${HOME}/.config";
XDG_CACHE_HOME = "\${HOME}/.cache";
XDG_STATE_HOME = "\${HOME}/.local/state";
XDG_DATA_HOME = "\${HOME}/.local/share";
XDG_BIN_HOME = "\${HOME}/.local/bin";
2024-02-16 18:19:19 -08:00
PATH = [
"\${HOME}/prog/scripts"
];
2023-11-19 19:31:04 -08:00
};
users.groups = {
wheel = { };
network = { };
};
}