From 0f50057886635476086ffcc4d171d91a8c7cc38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 8 Sep 2021 16:12:23 +0200 Subject: [PATCH] Create X number of users where X = 2 * cpu cores --- lib/install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install-nix.sh b/lib/install-nix.sh index 82b50f3..31304ee 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -30,7 +30,7 @@ installer_options=( if [[ $OSTYPE =~ darwin || -e /run/systemd/system ]]; then installer_options+=( --daemon - --daemon-user-count 4 + --daemon-user-count `python -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)'` ) else # "fix" the following error when running nix*