Lower CPU and RAM limits of the upgrade service

This commit is contained in:
coolneng 2024-12-11 22:12:43 +01:00
parent 5f5dc1cbcd
commit 52a1cbd382
Signed by: coolneng
GPG Key ID: 9893DA236405AF57

View File

@ -202,10 +202,10 @@ with pkgs;
# Limit the memory and CPU use of Nix
systemd.services.nixos-upgrade.serviceConfig = {
MemoryHigh = [ "500M" ];
MemoryMax = [ "2048M" ];
CPUWeight = [ "20" ];
CPUQuota = [ "85%" ];
IOWeight = [ "20" ];
MemoryMax = [ "2G" ];
MemorySwapMax = [ "500M" ];
CPUWeight = [ "50" ];
CPUQuota = [ "50%" ];
};
# Configure git for auto-upgrade