hydra: reenable swap

This commit is contained in:
Astro 2022-05-12 02:59:16 +02:00
parent 2d8e802feb
commit d29c13f642
2 changed files with 10 additions and 9 deletions

View File

@ -32,9 +32,10 @@
fsType = "vfat";
};
# swapDevices =
# [ { device = "/dev/disk/by-uuid/d5e112a4-fcd3-461a-b2eb-21c6a10ad108"; }
# ];
swapDevices = [ {
device = "/dev/disk/by-uuid/d5e112a4-fcd3-461a-b2eb-21c6a10ad108";
discardPolicy = "both";
} ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@ -51,15 +51,15 @@ in {
};
systemd.services.hydra-evaluator.serviceConfig = {
CPUWeight = 2;
MemoryHigh = "24G";
MemoryMax = "32G";
MemorySwapMax = "8G";
MemoryHigh = "32G";
MemoryMax = "40G";
MemorySwapMax = "16G";
};
systemd.services.nix-daemon.serviceConfig = {
CPUWeight = 5;
MemoryHigh = "24G";
MemoryMax = "32G";
MemorySwapMax = "8G";
MemoryHigh = "32G";
MemoryMax = "40G";
MemorySwapMax = "16G";
};
services.nginx =