From 57f4e3a0d40ba1784ef9d239ac489a4032437612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 25 Apr 2023 15:17:51 +0200 Subject: nixos: run less jobs in paralel on Ridcully --- nixos/machine/ridcully.nix | 3 +++ nixos/modules/compile.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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; }; -- cgit v1.2.3