Skip to content

Commit da2b6f4

Browse files
authored
Merge pull request #570 from a-kenji/ke-variable-expansion-fix
Fix order of passing `nixOptions` in `nixos-facter call`
2 parents 37cd540 + 29f6973 commit da2b6f4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/nixos-anywhere.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,8 @@ generateHardwareConfig() {
586586
fi
587587
if [[ ${hasNixOSFacter} == "n" ]]; then
588588
step "Generating facter.json using nixos-facter from nixpkgs"
589-
runSshNoTty -o ConnectTimeout=10 "${maybeSudo}" \
590-
nix run "${nixOptions[@]}" \
591-
nixpkgs#nixos-facter >"$hardwareConfigPath"
589+
runSshNoTty -o ConnectTimeout=10 \
590+
nix run nixpkgs#nixos-facter "${nixOptions[@]}" >"$hardwareConfigPath"
592591
else
593592
step "Generating facter.json using nixos-facter"
594593
runSshNoTty -o ConnectTimeout=10 "${maybeSudo}" "nixos-facter" >"$hardwareConfigPath"

0 commit comments

Comments
 (0)