aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-04-25 15:17:51 +0200
committerKarel Kočí <cynerd@email.cz>2023-04-25 15:17:51 +0200
commit57f4e3a0d40ba1784ef9d239ac489a4032437612 (patch)
treed79ed0d44e53627cc73f7f0aa4ce41928871e1cc
parent7c7e5963e311dd7207bfd68b6e335a68e7aae844 (diff)
downloadnixos-personal-57f4e3a0d40ba1784ef9d239ac489a4032437612.tar.gz
nixos-personal-57f4e3a0d40ba1784ef9d239ac489a4032437612.tar.bz2
nixos-personal-57f4e3a0d40ba1784ef9d239ac489a4032437612.zip
nixos: run less jobs in paralel on Ridcully
-rw-r--r--nixos/machine/ridcully.nix3
-rw-r--r--nixos/modules/compile.nix2
2 files changed, 4 insertions, 1 deletions
diff --git a/nixos/machine/ridcully.nix b/nixos/machine/ridcully.nix
index da95cd4..a9e3a42 100644
--- a/nixos/machine/ridcully.nix
+++ b/nixos/machine/ridcully.nix
@@ -65,5 +65,8 @@ with lib; {
dataDir = "/home/cynerd";
configDir = "/home/cynerd/.config/syncthing";
};
+
+ # Force nix to use less jobs
+ nix.settings.max-jobs = 8;
};
}
diff --git a/nixos/modules/compile.nix b/nixos/modules/compile.nix
index 18ff6f5..929b373 100644
--- a/nixos/modules/compile.nix
+++ b/nixos/modules/compile.nix
@@ -15,7 +15,7 @@ with lib; {
config = mkIf config.cynerd.compile {
nix.settings = {
- max-jobs = 32;
+ max-jobs = mkDefault 32;
cores = 0;
};