From f2df6e23caa670a0de767d5446746e39331180db Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 11 Feb 2023 17:15:36 +0100 Subject: make nixos upgrade lightweight --- nixos/services.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nixos/services.nix') diff --git a/nixos/services.nix b/nixos/services.nix index f8baf85..908913c 100644 --- a/nixos/services.nix +++ b/nixos/services.nix @@ -18,6 +18,10 @@ before = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ]; wantedBy = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ]; }; + + nixos-upgrade.unitConfig = { + CPUWeight = 1; + }; }; # virtualisation.docker.enable = true; -- cgit v1.2.3