diff --git a/machine/rainbow-resort/hardware.nix b/machine/rainbow-resort/hardware.nix index f1c51977..a6528c87 100644 --- a/machine/rainbow-resort/hardware.nix +++ b/machine/rainbow-resort/hardware.nix @@ -17,7 +17,31 @@ boot.initrd.kernelModules = ["amdgpu"]; boot.kernelModules = ["kvm-amd" "i2c-dev" "i2c-piix4"]; boot.extraModulePackages = []; - nix.settings.cores = 4; - # use the lowest frequency possible, to save power - powerManagement.cpuFreqGovernor = "powersave"; + nix.settings.cores = 16; + boot.binfmt.emulatedSystems = [ + "armv7l-linux" + "powerpc-linux" + "powerpc64-linux" + "powerpc64le-linux" + "wasm32-wasi" + "riscv32-linux" + "riscv64-linux" + ]; + nix.daemonCPUSchedPolicy = "idle"; + nix.daemonIOSchedClass = "idle"; + + nix.settings.system-features = [ + "kvm" + "nixos-test" + "big-parallel" + "benchmark" + "gccarch-znver4" + "gccarch-znver3" + "gccarch-znver2" + "gccarch-znver1" + "gccarch-skylake" + "gccarch-skylake-avx512" + "ca-derivations" + ]; + } diff --git a/modules/nix/build-server.nix b/modules/nix/build-server.nix index ea2b1870..24fe866e 100644 --- a/modules/nix/build-server.nix +++ b/modules/nix/build-server.nix @@ -47,7 +47,7 @@ with lib; { ]; } ] - [ + (mkIf (config.networking.hostName != "rainbow-resort") [ { hostName = "build-rainbow-resort"; systems = [ @@ -76,7 +76,7 @@ with lib; { "ca-derivations" ]; } - ] + ]) (mkIf (config.networking.hostName != "not522") [ { hostName = "build-riscv";