Skip to content

Commit 72855c7

Browse files
committed
nixos-anywhere: Fix order of passing nixOptions in nixos-facter call
This fixes an issue where the 2nd argument of `--extra-experimental-features` is parsed as a flake, instead of the argument to the flag
1 parent abfb275 commit 72855c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,7 @@ generateHardwareConfig() {
587587
if [[ ${hasNixOSFacter} == "n" ]]; then
588588
step "Generating facter.json using nixos-facter from nixpkgs"
589589
runSshNoTty -o ConnectTimeout=10 \
590-
nix run "${nixOptions[@]}" \
591-
nixpkgs#nixos-facter >"$hardwareConfigPath"
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)