courge: update to nixos-24.05
[julm/julm-nix.git] / build
diff --git a/build b/build
index cbb8e4513e25fe783b1f430e00274d857195333c..4ce3d93daf756913eb2e0b41263ac6f3d51fb5af 100755 (executable)
--- a/build
+++ b/build
@@ -1,6 +1,5 @@
 #!/bin/sh -eux
 cd "${0%/*}"
-chmod -R g-rwx,o-rwx private/root
-trap 'git reset private/root' EXIT
-git rm -rf --cached --ignore-unmatch private/root # prevent copying to /nix/store
-time nix -L build -o hosts/"$1".root .\#nixosConfigurations."$1".config.system.build.toplevel
+host=$1
+shift
+time nix -L build --keep-going "$@" -o hosts/"$host".root .\#nixosConfigurations."$host".config.system.build.toplevel