blob: e9e1655f8f00ff258bf7f08b311085fef9effac0 (
plain)
1
2
3
4
5
6
7
8
|
#!@zsh@/bin/zsh -e
if [[ $(@coreutils@/bin/whoami) != "root" ]]; then
exec @wrapperDir@/sudo -H -- @out@/bin/@scriptName@ $@
fi
export NIX_SSHOPTS="-F @sshConfig@" GIT_SSH_COMMAND="@openssh@/bin/ssh -F @sshConfig@"
exec -- @nixosRebuild@/bin/nixos-rebuild --refresh --flake '@flake@' ${@:-switch}
|