mermet: nginx: sourcephile.fr: add /temp
[sourcephile-nix.git] / hosts / mermet / switch
index 8bddce89a11ebc9a3d8602a3829ef1a4b632fb0d..1d5bd4d5d3dc954e4b4435f9078cdd700b92f0f6 100755 (executable)
@@ -1,3 +1,8 @@
 #!/bin/sh -eux
 cd "${0%/*}"/../..
-nix -L run .#mermet.switch "$@"
+host=mermet
+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 "$@"