install: correctly pass nix options to nixos-anywhere

The nix_options were collected but never passed to the nixos-anywhere command.
This fix adds the options to the command before the target host argument.
This commit is contained in:
Jörg Thalheim
2025-06-17 12:31:21 +02:00
parent d6bc409418
commit 28a0f09514

View File

@@ -134,6 +134,10 @@ def install_machine(opts: InstallOptions) -> None:
if opts.debug:
cmd.append("--debug")
# Add nix options to nixos-anywhere
cmd.extend(opts.nix_options)
cmd.append(host.target)
if opts.use_tor:
# nix copy does not support tor socks proxy