snowflake/modules/system.nix

45 lines
948 B
Nix
Raw Normal View History

2023-06-10 17:37:35 -04:00
{pkgs, ...}: {
2023-04-23 17:45:37 -04:00
documentation = {
2023-04-22 03:21:08 -04:00
enable = true;
doc.enable = false;
man.enable = true;
dev.enable = false;
};
services = {
fstrim = {
enable = true;
};
tailscale.enable = true;
2023-04-22 03:21:08 -04:00
};
2023-04-23 17:45:37 -04:00
2023-04-22 03:21:08 -04:00
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
2023-04-23 17:45:37 -04:00
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
2023-09-16 19:54:23 -04:00
environment.etc."mdadm.conf".text = ''
MAILADDR root
'';
2023-06-10 17:37:35 -04:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2023-04-22 15:14:43 -04:00
systemd.services.systemd-udevd.restartIfChanged = false;
systemd.extraConfig = ''
DefaultTimeoutStopSec=10s
'';
2023-04-22 15:14:43 -04:00
system.autoUpgrade.enable = false;
system.stateVersion = "23.05"; # no touchy
2023-04-23 17:45:37 -04:00
}