Add given password for hosts/blackberry/nebula/blackberry.key to store.
[julm/julm-nix.git] / install
diff --git a/install b/install
index 563dc4454c79a2bb14d06d34d460107756c9ed5d..6ae60dea3896ae3b915e1b1d9992d4f8dab9f4b0 100755 (executable)
--- a/install
+++ b/install
@@ -1,9 +1,9 @@
 #!/bin/sh -eux
 cd "${0%/*}"
 chmod -R g-rwx,o-rwx "$PWD/private/root"
-trap 'git reset private/root' EXIT
-git rm -rf --cached --ignore-unmatch private/root # prevent copying to /nix/store
+trap 'git reset private/root private/hosts/*/root' EXIT
+git rm -rf --cached --ignore-unmatch private/root private/hosts/*/root # prevent copying to /nix/store
 sudo ln -sfn "$PWD/private/root" /root/private
-# To build offline, use: --option no-net 1 --option substituters ""
+# To build offline, use: --offline
 sudo time nixos-rebuild switch --flake . "$@"
-sudo nix-env --delete-generations +9 --profile /nix/var/nix/profiles/system
+sudo nix-env --delete-generations 7d --profile /nix/var/nix/profiles/system