cli: ensure init-hardware-config passes Nix options to nixos-anywhere

This commit is contained in:
Michael Hoang
2025-10-10 14:07:03 +02:00
parent f6b8d660d8
commit bc09d5c886

View File

@@ -119,6 +119,9 @@ def run_machine_hardware_info_init(
if opts.debug:
cmd += ["--debug"]
# Add nix options to nixos-anywhere
cmd.extend(opts.machine.flake.nix_options or [])
cmd += [target_host.target]
cmd = nix_shell(
["nixos-anywhere"],