bash: fix zfs-mount failures
[julm/julm-nix.git] / build
diff --git a/build b/build
index a3fac6f7e65f6b07738be3ec382f1b7c9471bfbd..4ce3d93daf756913eb2e0b41263ac6f3d51fb5af 100755 (executable)
--- a/build
+++ b/build
@@ -2,9 +2,4 @@
 cd "${0%/*}"
 host=$1
 shift
-chmod -R g-rwx,o-rwx private/root "$PWD"/private/hosts/*/root
-trap 'git reset private/root private/hosts' EXIT
-# prevent copying to /nix/store
-git rm -rf --cached --ignore-unmatch private/root private/hosts/*
-git reset private/hosts/"$host"/credentials private/hosts/"$host"/root/machine-id
-time nix -L build "$@" -o hosts/"$host".root .\#nixosConfigurations."$host".config.system.build.toplevel
+time nix -L build --keep-going "$@" -o hosts/"$host".root .\#nixosConfigurations."$host".config.system.build.toplevel