Skip to content

Commit 6b0074a

Browse files
committed
Revert "nixos-anywhere: Remove maybeSudo from non native nixos-facter call"
This reverts commit abfb275.
1 parent 7a8bd09 commit 6b0074a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ generateHardwareConfig() {
586586
fi
587587
if [[ ${hasNixOSFacter} == "n" ]]; then
588588
step "Generating facter.json using nixos-facter from nixpkgs"
589-
runSshNoTty -o ConnectTimeout=10 \
589+
runSshNoTty -o ConnectTimeout=10 "${maybeSudo}" \
590590
nix run "${nixOptions[@]}" \
591591
nixpkgs#nixos-facter >"$hardwareConfigPath"
592592
else

0 commit comments

Comments
 (0)