Add given password for hosts/mermet/nebula/ca.key to store.
[sourcephile-nix.git] / hosts / losurdo / switch
index 138759db80be782150cde0ae171774ddfaffffa7..f5229a33442f1e4a6145eaf70f6bd0c5e9e5e957 100755 (executable)
@@ -1,3 +1,8 @@
 #!/bin/sh -eux
 cd "${0%/*}"/../..
-nix -L run .#losurdo.switch "$@"
+host=losurdo
+#chmod -R g-rwx,o-rwx "$PWD"/private/hosts/*/root
+#ln -sfn "$PWD/private/hosts/$host/root" /root/private
+#trap 'git reset private/hosts/*/root' EXIT
+#git rm -rf --cached --ignore-unmatch private/hosts/*/root # prevent copying to /nix/store
+nix -L run .#$host.switch "$@"