all repos — nixfiles @ 3a7a769a502109b43ad54a388aa5140d62755caf

System and user configuration, managed by nix and home-manager

remove host-specific nix max-jobs/cores values; make role-based the default setting is automatic, based on CPU cores (for both) - set a lower value on servers as they are probably busy with other things - except buk: its main role is as a remote builder

Alin
commit

3a7a769a502109b43ad54a388aa5140d62755caf

parent

fb07da2e1d675275b0a91ba81cbc44c81958b98b

M system/hosts/buk.nix → system/hosts/buk.nix
@@ -7,12 +7,17 @@ ../roles/nix-remote-builder.nix
]; networking.hostName = "buk"; - nix.settings.max-jobs = 16; system.autoUpgrade = { operation = "boot"; rebootWindow = null; # idle shutdown solves this for us }; + nix = { + settings = { + max-jobs = "auto"; + cores = 0; + }; + }; system.stateVersion = "25.11"; }
M system/hosts/marvin.nix → system/hosts/marvin.nix
@@ -57,13 +57,6 @@ # $ darwin-rebuild changelog
system.stateVersion = 4; ids.gids.nixbld = 350; - # You should generally set this to the total number of logical cores in your system. - # $ sysctl -n hw.ncpu - nix.settings = { - max-jobs = 4; - cores = 8; - }; - nix.linux-builder = { enable = false; # will be needed for building the rosetta image systems = [ "aarch64-linux" ];
M system/hosts/r5.nix → system/hosts/r5.nix
@@ -90,12 +90,6 @@ "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBENXbdPPOq0mA+9bPklpUkikvIXjCEKE5IRwNPNMr5/Ta1J/ND737fexCjEb7YPoAJtaf0gD/JThQQi/RxDTvy4= alin@secretive.marvin.local"
]; }; - nix = { - settings = { - max-jobs = 2; - }; - }; - boot.kernelModules = [ "rtc_rk808" # this RTC supposedly has a battery, but doesn't seem to work
M system/hosts/r6.nix → system/hosts/r6.nix
@@ -109,7 +109,6 @@
nix = { distributedBuilds = true; settings = { - max-jobs = 2; trusted-public-keys = [ "mba-1:CxokFjx7YAQWPWMJJKcP50ZpcPUCAFEOrtWdNUMTVjw=" ];
M system/roles/server.nix → system/roles/server.nix
@@ -24,6 +24,11 @@ ];
srvos.server.docs.enable = true; + nix.settings = { + max-jobs = lib.mkDefault 2; + cores = lib.mkDefault 2; + }; + services.sshguard = { enable = true; };