We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
maybeSudo
nixos-facter
1 parent 7a8bd09 commit 6b0074aCopy full SHA for 6b0074a
src/nixos-anywhere.sh
@@ -586,7 +586,7 @@ generateHardwareConfig() {
586
fi
587
if [[ ${hasNixOSFacter} == "n" ]]; then
588
step "Generating facter.json using nixos-facter from nixpkgs"
589
- runSshNoTty -o ConnectTimeout=10 \
+ runSshNoTty -o ConnectTimeout=10 "${maybeSudo}" \
590
nix run "${nixOptions[@]}" \
591
nixpkgs#nixos-facter >"$hardwareConfigPath"
592
else
0 commit comments