aboutsummaryrefslogtreecommitdiff
path: root/scripts/install-multi-user.sh
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2019-03-27 16:18:53 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2019-03-27 16:23:35 +0100
commitdbe4c043d75f90f30932d326d2c80fd030b1f06d (patch)
tree85b4f7aee43de7e96726b571627239bc47e7fa59 /scripts/install-multi-user.sh
parent6e9e34ea1faac175b787734151f44a662ed57241 (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/install-multi-user.sh')
-rw-r--r--scripts/install-multi-user.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh
index 4b65783a2..6a76761cc 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)" \