diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build.sh | 8 | ||||
| -rwxr-xr-x | scripts/unflake.sh | 11 |
2 files changed, 7 insertions, 12 deletions
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 diff --git a/scripts/unflake.sh b/scripts/unflake.sh index b46df36e..f916759a 100755 --- a/scripts/unflake.sh +++ b/scripts/unflake.sh @@ -2,17 +2,6 @@ set -e -# HACK(@bpeetz): unflake doesn't support npins version 8 yet, so we pretend to still use -# version 7. <2026-06-13> -NPINS_DIRECTORY="$(mktemp -t "npins_fake_dir_for_unflake_XXXXX" -d)" -export NPINS_DIRECTORY - -mv npins/sources.json "$NPINS_DIRECTORY/" -jq '.version = 7' <"$NPINS_DIRECTORY/sources.json" >npins/sources.json - NIX_CONFIG="pure-eval = false" nix run -f https://codeberg.org/goldstein/unflake/archive/main.tar.gz unflake -- "$@" -mv "$NPINS_DIRECTORY/sources.json" npins/sources.json -rmdir "$NPINS_DIRECTORY" - # vim: ft=sh |
