From 6c404cd5dd3fcaa2a950a2add8d6892951e4c17a Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Sat, 22 Jul 2023 20:54:05 +0300 Subject: [PATCH] Drop the need for python by using nproc --- install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-nix.sh b/install-nix.sh index 536783c..0c1a7bf 100755 --- a/install-nix.sh +++ b/install-nix.sh @@ -50,7 +50,7 @@ installer_options=( if [[ (! $INPUT_INSTALL_OPTIONS =~ "--no-daemon") && ($OSTYPE =~ darwin || -e /run/systemd/system) ]]; then installer_options+=( --daemon - --daemon-user-count "$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)')" + --daemon-user-count "$(nproc --all)" ) else # "fix" the following error when running nix*