From 52a1cbd3827141d331074a731d5b73fc1a1f1c3b Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 11 Dec 2024 22:12:43 +0100 Subject: [PATCH] Lower CPU and RAM limits of the upgrade service --- configuration.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index 76854ee..e7ff512 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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