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 f6bd5e8282
commit cc36247f22

View File

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