mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 15:11:54 -05:00
75 lines
1.6 KiB
Nix
75 lines
1.6 KiB
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./networking
|
|
./nix
|
|
./nixpkgs
|
|
./plymouth
|
|
./zramSwap
|
|
];
|
|
|
|
config = lib.mkIf config.ar.base.enable {
|
|
console.useXkbConfig = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
inputs.agenix.packages.${pkgs.system}.default
|
|
inxi
|
|
];
|
|
|
|
i18n = {
|
|
defaultLocale = lib.mkDefault "en_US.UTF-8";
|
|
extraLocaleSettings = {
|
|
LC_ADDRESS = config.i18n.defaultLocale;
|
|
LC_IDENTIFICATION = config.i18n.defaultLocale;
|
|
LC_MEASUREMENT = config.i18n.defaultLocale;
|
|
LC_MONETARY = config.i18n.defaultLocale;
|
|
LC_NAME = config.i18n.defaultLocale;
|
|
LC_NUMERIC = config.i18n.defaultLocale;
|
|
LC_PAPER = config.i18n.defaultLocale;
|
|
LC_TELEPHONE = config.i18n.defaultLocale;
|
|
LC_TIME = config.i18n.defaultLocale;
|
|
};
|
|
};
|
|
|
|
hardware.keyboard.qmk.enable = true;
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
security = {
|
|
polkit.enable = true;
|
|
rtkit.enable = true;
|
|
};
|
|
|
|
services.logind.extraConfig = ''
|
|
# Don't shutdown when power button is short-pressed
|
|
HandlePowerKey=suspend
|
|
HandlePowerKeyLongPress=poweroff
|
|
'';
|
|
|
|
sound.enable = true;
|
|
|
|
system.autoUpgrade = {
|
|
allowReboot = true;
|
|
dates = "04:00";
|
|
randomizedDelaySec = "20min";
|
|
enable = true;
|
|
flake = "github:alyraffauf/nixcfg";
|
|
operation = "boot";
|
|
rebootWindow = {
|
|
lower = "02:00";
|
|
upper = "05:00";
|
|
};
|
|
};
|
|
|
|
time.timeZone = "America/New_York";
|
|
};
|
|
}
|