2024-02-29 17:06:55 -05:00
|
|
|
{
|
2024-04-07 22:16:33 -04:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-04-17 20:01:06 -04:00
|
|
|
imports = [./plymouth ./power-profiles-daemon ./zramSwap];
|
2024-03-30 14:48:48 -04:00
|
|
|
|
2024-04-17 22:39:00 -04:00
|
|
|
alyraffauf.system.power-profiles-daemon.enable = lib.mkDefault true;
|
2024-03-16 13:18:17 -04:00
|
|
|
|
2024-04-24 07:57:36 -04:00
|
|
|
console = {
|
|
|
|
colors = [
|
|
|
|
"303446"
|
|
|
|
"e78284"
|
|
|
|
"a6d189"
|
|
|
|
"e5c890"
|
|
|
|
"8caaee"
|
|
|
|
"f4b8e4"
|
|
|
|
"81c8be"
|
|
|
|
"b5bfe2"
|
|
|
|
"626880"
|
|
|
|
"303446"
|
|
|
|
"e78284"
|
|
|
|
"a6d189"
|
|
|
|
"e5c890"
|
|
|
|
"8caaee"
|
|
|
|
"f4b8e4"
|
|
|
|
"81c8be"
|
|
|
|
"a5adce"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-03-01 21:54:34 -05:00
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
|
2024-03-16 13:18:17 -04:00
|
|
|
i18n = {
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
extraLocaleSettings = {
|
2024-04-17 20:01:06 -04:00
|
|
|
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-03-16 13:18:17 -04:00
|
|
|
};
|
2024-03-01 21:54:34 -05:00
|
|
|
};
|
2024-03-01 21:38:19 -05:00
|
|
|
|
2024-04-05 16:33:51 -04:00
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
2024-03-16 13:18:17 -04:00
|
|
|
hardware = {
|
|
|
|
bluetooth.enable = true;
|
|
|
|
# Add support for logitech unifying receivers.
|
|
|
|
logitech.wireless = {
|
|
|
|
enable = true;
|
|
|
|
enableGraphical = true;
|
|
|
|
};
|
|
|
|
keyboard.qmk.enable = true;
|
2024-04-05 16:33:51 -04:00
|
|
|
|
|
|
|
pulseaudio = {
|
|
|
|
enable = lib.mkForce false;
|
|
|
|
package = pkgs.pulseaudioFull;
|
|
|
|
};
|
2024-03-16 13:18:17 -04:00
|
|
|
};
|
2024-03-11 18:37:01 -04:00
|
|
|
|
2024-04-05 16:33:51 -04:00
|
|
|
sound.enable = true;
|
2024-03-26 17:24:31 -04:00
|
|
|
|
2024-04-17 20:01:06 -04:00
|
|
|
networking = {
|
|
|
|
networkmanager.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-04-05 16:33:51 -04:00
|
|
|
services = {
|
|
|
|
logind.extraConfig = ''
|
|
|
|
# Don't shutdown when power button is short-pressed
|
|
|
|
HandlePowerKey=suspend
|
|
|
|
HandlePowerKeyLongPress=poweroff
|
|
|
|
'';
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
2024-04-17 20:01:06 -04:00
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns4 = true;
|
|
|
|
openFirewall = true;
|
|
|
|
publish = {
|
|
|
|
enable = true;
|
|
|
|
addresses = true;
|
|
|
|
userServices = true;
|
|
|
|
workstation = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
printing.enable = true;
|
|
|
|
tailscale.enable = true;
|
2024-04-05 16:33:51 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
rtkit.enable = true;
|
|
|
|
};
|
2024-03-23 15:22:06 -04:00
|
|
|
|
2024-02-29 17:06:55 -05:00
|
|
|
# Allow unfree packages
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2024-03-01 12:13:33 -05:00
|
|
|
system.autoUpgrade = {
|
2024-03-12 21:52:11 -04:00
|
|
|
allowReboot = true;
|
2024-03-29 07:41:04 -04:00
|
|
|
dates = "04:00";
|
2024-03-16 13:18:17 -04:00
|
|
|
enable = true;
|
|
|
|
flake = "github:alyraffauf/nixcfg";
|
2024-03-12 21:52:11 -04:00
|
|
|
operation = "boot";
|
2024-03-15 09:20:18 -04:00
|
|
|
rebootWindow = {
|
2024-03-16 13:18:17 -04:00
|
|
|
lower = "02:00";
|
2024-03-29 07:48:06 -04:00
|
|
|
upper = "05:00";
|
2024-03-15 09:36:01 -04:00
|
|
|
};
|
2024-03-01 12:13:33 -05:00
|
|
|
};
|
2024-02-29 17:06:55 -05:00
|
|
|
|
2024-03-16 13:18:17 -04:00
|
|
|
nix = {
|
2024-04-07 22:10:37 -04:00
|
|
|
optimise.automatic = true;
|
2024-03-16 13:18:17 -04:00
|
|
|
gc = {
|
|
|
|
# Delete generations older than 7 days.
|
|
|
|
automatic = true;
|
|
|
|
dates = "daily";
|
2024-04-01 00:01:47 -04:00
|
|
|
options = "--delete-older-than 3d";
|
2024-03-16 13:18:17 -04:00
|
|
|
randomizedDelaySec = "60min";
|
|
|
|
};
|
|
|
|
# Run GC when there is less than 100MiB left.
|
|
|
|
extraOptions = ''
|
|
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
|
|
max-free = ${toString (1024 * 1024 * 1024)}
|
|
|
|
'';
|
|
|
|
settings = {
|
2024-04-07 22:10:37 -04:00
|
|
|
auto-optimise-store = false;
|
2024-04-07 22:16:33 -04:00
|
|
|
experimental-features = ["nix-command" "flakes"];
|
2024-04-05 16:35:13 -04:00
|
|
|
substituters = [
|
|
|
|
"https://nixcache.raffauflabs.com"
|
|
|
|
"https://cache.nixos.org/"
|
|
|
|
];
|
2024-03-20 18:14:37 -04:00
|
|
|
trusted-public-keys = [
|
|
|
|
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
|
|
|
|
];
|
2024-03-16 13:18:17 -04:00
|
|
|
};
|
|
|
|
};
|
2024-02-29 17:06:55 -05:00
|
|
|
}
|