nix-flake/modules/system/base.nix
satr14 d4b19a279e
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 19s
put swappiness and governor in base
2026-07-24 15:22:47 +07:00

37 lines
No EOL
810 B
Nix

{ hostname, timezone, locale, ... }: {
system.stateVersion = "24.11";
imports = [
./core/virtualization.nix
./core/bootloader.nix
./core/filesystem.nix
./core/network.nix
./core/kernel.nix
./core/shell.nix
./misc/utilities.nix
./misc/nix-conf.nix
];
networking.hostName = "${hostname}";
time.timeZone = timezone;
i18n.defaultLocale = locale;
environment.localBinInPath = true;
powerManagement.cpuFreqGovernor = "powersave";
boot.kernel.sysctl."vm.swappiness" = 10; # only swap when necessary
security = {
polkit = {
enable = true;
enablePkexecWrapper = true;
};
sudo.configFile = ''
Defaults insults
Defaults passwd_tries = 5
'';
};
services = {
openssh.enable = true;
tailscale.enable = true;
};
}