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

Closes #148918.

Changed files
+1 -7
pkgs
os-specific
linux
nixos-rebuild
+1 -7
pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
···
upgrade=
upgrade_all=
profile=/nix/var/nix/profiles/system
-
buildHost=localhost
+
buildHost=
targetHost=
remoteSudo=
verboseScript=
···
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