summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-09-30 14:55:19 +0200
committerAlan Pearce2019-09-30 14:55:19 +0200
commit2d65cbc5dc3ac87e6ba29d7708768448eb385c6e (patch)
tree8255cbb684f9d10288c010e7d96f705d49626d22
parent3884a59bf78f793e2954b81b4e93656e45c1e1e2 (diff)
downloadnixos-configuration-2d65cbc5dc3ac87e6ba29d7708768448eb385c6e.tar.xz
nixos-configuration-2d65cbc5dc3ac87e6ba29d7708768448eb385c6e.zip
nix: improve system responsiveness with nix builds
-rw-r--r--modules/configuration/nix.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/configuration/nix.nix b/modules/configuration/nix.nix index 15cbb7a..9aa8343 100644 --- a/modules/configuration/nix.nix +++ b/modules/configuration/nix.nix
@@ -3,8 +3,8 @@
3{ nix = { 3{ nix = {
4 buildCores = 0; 4 buildCores = 0;
5 5
6 daemonNiceLevel = 10; 6 daemonNiceLevel = 19;
7 daemonIONiceLevel = 4; 7 daemonIONiceLevel = 7;
8 8
9 autoOptimiseStore = true; 9 autoOptimiseStore = true;
10 gc = { 10 gc = {
@@ -27,7 +27,7 @@
27 27
28 system.autoUpgrade = { 28 system.autoUpgrade = {
29 enable = true; 29 enable = true;
30 flags = [ "--max-jobs" "2" ]; 30 flags = [ "--max-jobs" "1" ];
31 }; 31 };
32 systemd.services.nixos-upgrade = { 32 systemd.services.nixos-upgrade = {
33 script = pkgs.lib.mkForce '' 33 script = pkgs.lib.mkForce ''