api/machines: verify config by evaluating the .vm output

This fixes the problem where fileSystems were missing, or boot.loader was not set.

SInce we want VMs anyways for now, this strategy aligns well
This commit is contained in:
DavHau
2023-11-13 20:50:11 +07:00
parent 74451be048
commit 33944cf74e
2 changed files with 12 additions and 35 deletions

View File

@@ -44,7 +44,7 @@ def verify_machine_config(
"--show-trace",
"--show-trace",
"--impure", # needed to access CLAN_MACHINE_SETTINGS_FILE
f".#nixosConfigurations.{machine_name}.config.system.build.toplevel.outPath",
f".#nixosConfigurations.{machine_name}.config.system.build.vm.outPath",
],
)
# repro_env_break(work_dir=flake, env=env, cmd=cmd)