From 1b63b4b3fd599eb77c52381e4a6e273af7460cf1 Mon Sep 17 00:00:00 2001 From: Charlotte Delenk Date: Fri, 8 Nov 2024 14:32:31 +0100 Subject: [PATCH] update nix config for rainbow-resort --- machine/rainbow-resort/hardware.nix | 30 ++++++++++++++++++++++++++--- modules/nix/build-server.nix | 4 ++-- 2 files changed, 29 insertions(+), 5 deletions(-) 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";