pkgs/cli: Fix generation of hardware configuration for machines install

Correctly use the `value` of the `enum`, which is expected by
`nixos-anywhere`.
This commit is contained in:
a-kenji
2024-11-20 16:11:09 +01:00
parent 7435bcb9da
commit 5a9d58ec59

View File

@@ -86,7 +86,7 @@ def install_machine(opts: InstallOptions) -> None:
cmd.extend(
[
"--generate-hardware-config",
str(opts.update_hardware_config),
str(opts.update_hardware_config.value),
str(
opts.update_hardware_config.config_path(
opts.flake.path, machine.name