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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user