From 5a9d58ec5951fb8040f59aac55c85829993d8f48 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Wed, 20 Nov 2024 16:11:09 +0100 Subject: [PATCH] pkgs/cli: Fix generation of hardware configuration for `machines install` Correctly use the `value` of the `enum`, which is expected by `nixos-anywhere`. --- pkgs/clan-cli/clan_cli/machines/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/machines/install.py b/pkgs/clan-cli/clan_cli/machines/install.py index 52d2ff440..98d7edf70 100644 --- a/pkgs/clan-cli/clan_cli/machines/install.py +++ b/pkgs/clan-cli/clan_cli/machines/install.py @@ -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