From 470d8d300705c5b8b2a5d620f730c162af5d2b8f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 10 Sep 2026 00:57:45 +0200 Subject: scripts/build: Don't force `max-jobs = 1` --- scripts/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index f3661978..d6a81754 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -33,7 +33,13 @@ check() { } build_system() { - _val="$(nix build ".#nixosConfigurations.$host.config.system.build.toplevel" --print-out-paths --no-link --option max-jobs 1 "$@")" + if [ -n "$BUILD_PAR" ]; then + max_jobs="8" + else + max_jobs="1" + fi + + _val="$(nix build ".#nixosConfigurations.$host.config.system.build.toplevel" --print-out-paths --no-link --option max-jobs "$max_jobs" "$@")" exit_val="$?" if [ "$exit_val" -ne 0 ]; then -- cgit v1.3.1