about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-11-09 23:23:55 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-11-09 23:23:55 +0100
commit70f8a81e49c16424670a204505dd7a0925fc8452 (patch)
treea89111d835ca592bdbc73711327d0bf4fd77125b
parentmodules/lf/keybindings: Change download dir cd to `gD` (diff)
downloadnixos-config-70f8a81e49c16424670a204505dd7a0925fc8452.zip
build.sh: Only build one thing at once
This prevents OOMs and other issues.
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 3cba8fc2..3a6cfb5b 100755
--- a/build.sh
+++ b/build.sh
@@ -33,7 +33,7 @@ check() {
 }
 
 build_system() {
-    _val="$(nix build ".#nixosConfigurations.$host.config.system.build.toplevel" --print-out-paths --no-link "$@")"
+    _val="$(nix build ".#nixosConfigurations.$host.config.system.build.toplevel" --print-out-paths --no-link --option max-jobs 1 "$@")"
     exit_val="$?"
 
     if [ "$exit_val" -ne 0 ]; then