nixos-rebuild: Treat any build/target host as non-local

Closes #148918.
This commit is contained in:
Victor Engmark 2021-12-06 21:00:36 +13:00 committed by Dmitry Kalinkin
parent 5be120bac3
commit cbd1dc1e72

View file

@ -28,7 +28,7 @@ rollback=
upgrade=
upgrade_all=
profile=/nix/var/nix/profiles/system
buildHost=localhost
buildHost=
targetHost=
remoteSudo=
verboseScript=
@ -151,12 +151,6 @@ fi
if [[ -z "$buildHost" && -n "$targetHost" ]]; then
buildHost="$targetHost"
fi
if [ "$targetHost" = localhost ]; then
targetHost=
fi
if [ "$buildHost" = localhost ]; then
buildHost=
fi
# log the given argument to stderr if verbose mode is on
logVerbose() {