Skip to content

Commit abfb275

Browse files
committed
nixos-anywhere: Remove maybeSudo from non native nixos-facter call
We can't reliably predict yet if not in an installer and not having access to `nixos-facter` if the system actually has access to sudo. So we fall back to the non-sudo `nixos-facter` report.
1 parent 37cd540 commit abfb275

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 "${maybeSudo}" \
589+
runSshNoTty -o ConnectTimeout=10 \
590590
nix run "${nixOptions[@]}" \
591591
nixpkgs#nixos-facter >"$hardwareConfigPath"
592592
else

0 commit comments

Comments
 (0)