nix: improve system responsiveness with nix builds
Alan Pearce alan@alanpearce.eu
Mon, 30 Sep 2019 14:55:19 +0200
1 files changed, 3 insertions(+), 3 deletions(-)
M modules/configuration/nix.nix → 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 ''