clan_cli: Made qmp implementation lazy

This commit is contained in:
Qubasa
2024-02-13 15:15:43 +07:00
parent ef6d7cee1a
commit 87dbc99cab
6 changed files with 110 additions and 51 deletions

View File

@@ -146,7 +146,9 @@ def qemu_command(
# TODO move this to the Machines class
def build_vm(machine: Machine, vm: VmConfig, nix_options: list[str]) -> dict[str, str]:
def build_vm(
machine: Machine, vm: VmConfig, nix_options: list[str] = []
) -> dict[str, str]:
config = nix_config()
system = config["system"]