]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/mermet/switch
losurdo: openvpn: fix riseup
[sourcephile-nix.git] / hosts / mermet / switch
1 #!/bin/sh -eux
2 cd "${0%/*}"/../..
3 host=mermet
4 chmod -R g-rwx,o-rwx "$PWD"/private/hosts/*/root
5 #ln -sfn "$PWD/private/hosts/$host/root" /root/private
6 trap 'git reset private/hosts/*/root' EXIT
7 git rm -rf --cached --ignore-unmatch private/hosts/*/root # prevent copying to /nix/store
8 nix -L run .#$host.switch "$@"