hydra: reenable swap
This commit is contained in:
parent
2d8e802feb
commit
d29c13f642
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue