machine/install: fix type issues

This commit is contained in:
Johannes Kirschbauer
2025-08-29 11:03:24 +02:00
parent d3534a2b72
commit 8584f3247a

View File

@@ -214,15 +214,15 @@ def run_machine_install(opts: InstallOptions, target_host: Remote) -> None:
cmd, cmd,
) )
INSTALL_STEPS = { default_install_steps: dict[str, Step] = {
"kexec": "nixos-anywhere", "kexec": "nixos-anywhere",
"disko": "formatting", "disko": "formatting",
"install": "installing", "install": "installing",
"reboot": "rebooting" "reboot": "rebooting",
} }
def run_phase(phase: str) -> None: def run_phase(phase: str) -> None:
notification = INSTALL_STEPS.get(phase, "nixos-anywhere") notification = default_install_steps.get(phase, "nixos-anywhere")
notify_install_step(notification) notify_install_step(notification)
run( run(
[*cmd, "--phases", phase], [*cmd, "--phases", phase],