#!/bin/sh -eux
cd "${0%/*}"/../..
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 "$@"