Create X number of users where X = 2 * cpu cores

This commit is contained in:
Domen Kožar 2021-09-08 16:12:23 +02:00
parent 7a7eae594b
commit 0f50057886

View File

@ -30,7 +30,7 @@ installer_options=(
if [[ $OSTYPE =~ darwin || -e /run/systemd/system ]]; then if [[ $OSTYPE =~ darwin || -e /run/systemd/system ]]; then
installer_options+=( installer_options+=(
--daemon --daemon
--daemon-user-count 4 --daemon-user-count `python -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)'`
) )
else else
# "fix" the following error when running nix* # "fix" the following error when running nix*