blob: 59df899959692e1b139ef6642ddddb7d14c22731 (
plain)
1
2
3
4
5
6
7
|
#!@zsh@/bin/zsh -e
if [[ $(whoami) != "root" ]]; then
exec sudo -H -- $0 $@
fi
exec -- nixos-rebuild --refresh --flake 'git+ssh://machines/nixos?ref=flakes#@hostName@' ${@:-switch}
|