diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-11 17:15:36 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-11 17:15:36 +0100 |
| commit | f2df6e23caa670a0de767d5446746e39331180db (patch) | |
| tree | 317463a381ea6af3207d31253c8e89d680c3a8b3 /nixos/services.nix | |
| parent | 933143110808c285f9c8fec14c95c3af584eb2eb (diff) | |
make nixos upgrade lightweight
Diffstat (limited to 'nixos/services.nix')
| -rw-r--r-- | nixos/services.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
