Revert "nixos-rebuild: fix entering sudo password over SSH"

This reverts commit 09fd207cb8.

It caused a regression when using `--build-host` and flakes.
See https://github.com/NixOS/nixpkgs/pull/277642#issuecomment-1890783714
This commit is contained in:
Robert Hensing 2024-01-14 00:48:53 +01:00
parent 221ad6d7ff
commit 99d3e0c168

View File

@ -436,7 +436,7 @@ if [ "$action" = edit ]; then
exit 1
fi
SSHOPTS="$NIX_SSHOPTS -o ControlMaster=auto -o ControlPath=$tmpDir/ssh-%n -o ControlPersist=60 -t"
SSHOPTS="$NIX_SSHOPTS -o ControlMaster=auto -o ControlPath=$tmpDir/ssh-%n -o ControlPersist=60"
# First build Nix, since NixOS may require a newer version than the
# current one.