diff --git a/hosts/hydra/default.nix b/hosts/hydra/default.nix index 792f5f47..9b01f762 100644 --- a/hosts/hydra/default.nix +++ b/hosts/hydra/default.nix @@ -22,7 +22,7 @@ nix = { useSandbox = false; - maxJobs = 4; + maxJobs = 2; buildCores = 16; gc = { automatic = true; diff --git a/hosts/hydra/hydra.nix b/hosts/hydra/hydra.nix index e10c201a..c80570c5 100644 --- a/hosts/hydra/hydra.nix +++ b/hosts/hydra/hydra.nix @@ -44,13 +44,15 @@ in { }; systemd.services.hydra-evaluator.serviceConfig = { CPUWeight = 2; - MemoryAccounting = true; - MemoryHigh = "32G"; - MemoryMax = "40G"; + MemoryHigh = "24G"; + MemoryMax = "32G"; MemorySwapMax = "8G"; }; systemd.services.nix-daemon.serviceConfig = { CPUWeight = 5; + MemoryHigh = "24G"; + MemoryMax = "32G"; + MemorySwapMax = "8G"; }; services.nginx =