diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2019-03-27T15·18+0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2019-03-27T15·23+0100 |
commit | dbe4c043d75f90f30932d326d2c80fd030b1f06d (patch) | |
tree | 85b4f7aee43de7e96726b571627239bc47e7fa59 /scripts | |
parent | 6e9e34ea1faac175b787734151f44a662ed57241 (diff) |
install-multi-user: reduce max-jobs from 32 to 1
Having max-jobs = 32 ($NIX_USER_COUNT is hardcoded to that value) may severely overload the machine. The nix.conf(5) manual page says max-jobs defaults to 1, so let's use that value. NOTE: Both max-jobs and cores are now being set to their default value, so they can be removed alltogether.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/install-multi-user.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh index 4b65783a20ff..6a76761cc4de 100644 --- a/scripts/install-multi-user.sh +++ b/scripts/install-multi-user.sh @@ -742,7 +742,7 @@ place_nix_configuration() { cat <<EOF > "$SCRATCH/nix.conf" build-users-group = $NIX_BUILD_GROUP_NAME -max-jobs = $NIX_USER_COUNT +max-jobs = 1 cores = 1 EOF _sudo "to place the default nix daemon configuration (part 2)" \ |