diff options
author | Alan Pearce | 2019-09-30 14:55:19 +0200 |
---|---|---|
committer | Alan Pearce | 2019-09-30 14:55:19 +0200 |
commit | 2d65cbc5dc3ac87e6ba29d7708768448eb385c6e (patch) | |
tree | 8255cbb684f9d10288c010e7d96f705d49626d22 | |
parent | 3884a59bf78f793e2954b81b4e93656e45c1e1e2 (diff) | |
download | nixfiles-2d65cbc5dc3ac87e6ba29d7708768448eb385c6e.tar.lz nixfiles-2d65cbc5dc3ac87e6ba29d7708768448eb385c6e.tar.zst nixfiles-2d65cbc5dc3ac87e6ba29d7708768448eb385c6e.zip |
nix: improve system responsiveness with nix builds
-rw-r--r-- | modules/configuration/nix.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/configuration/nix.nix b/modules/configuration/nix.nix index 15cbb7a8..9aa83435 100644 --- a/modules/configuration/nix.nix +++ b/modules/configuration/nix.nix @@ -3,8 +3,8 @@ { nix = { buildCores = 0; - daemonNiceLevel = 10; - daemonIONiceLevel = 4; + daemonNiceLevel = 19; + daemonIONiceLevel = 7; autoOptimiseStore = true; gc = { @@ -27,7 +27,7 @@ system.autoUpgrade = { enable = true; - flags = [ "--max-jobs" "2" ]; + flags = [ "--max-jobs" "1" ]; }; systemd.services.nixos-upgrade = { script = pkgs.lib.mkForce '' |