2024-06-11 21:16:05 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./networking
|
|
|
|
./nix
|
|
|
|
./nixpkgs
|
|
|
|
./plymouth
|
|
|
|
];
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
config = lib.mkIf config.ar.base.enable {
|
2024-07-01 22:59:41 -04:00
|
|
|
console.useXkbConfig = true;
|
2024-06-11 21:16:05 -04:00
|
|
|
|
2024-06-13 22:00:40 -04:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
inputs.agenix.packages.${pkgs.system}.default
|
|
|
|
inxi
|
|
|
|
];
|
2024-06-11 21:16:05 -04:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-06 18:05:20 -04:00
|
|
|
hardware.keyboard.qmk.enable = true;
|
|
|
|
|
2024-06-11 21:16:05 -04:00
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
rtkit.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-07-06 17:53:41 -04:00
|
|
|
services.logind.extraConfig = ''
|
|
|
|
# Don't shutdown when power button is short-pressed
|
|
|
|
HandlePowerKey=suspend
|
|
|
|
HandlePowerKeyLongPress=poweroff
|
|
|
|
'';
|
|
|
|
|
2024-07-06 18:05:20 -04:00
|
|
|
sound.enable = true;
|
|
|
|
|
2024-06-11 21:16:05 -04:00
|
|
|
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";
|
2024-07-07 17:17:51 -04:00
|
|
|
|
|
|
|
zramSwap = {
|
|
|
|
enable = lib.mkDefault true;
|
|
|
|
memoryPercent = lib.mkDefault 50;
|
|
|
|
};
|
2024-06-11 21:16:05 -04:00
|
|
|
};
|
|
|
|
}
|