Merge pull request #94 from cachix/user-count-cpu-cores

Create X number of users where X = 2 * cpu cores
This commit is contained in:
Domen Kožar 2021-09-08 16:29:57 +02:00 committed by GitHub
commit 11e5400ecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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*