1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix: update microvm definitions to new combined guests option

This commit is contained in:
oddlama 2023-12-21 21:18:08 +01:00
parent 95fac4c72a
commit 61375199e5
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
5 changed files with 51 additions and 55 deletions

View file

@ -54,13 +54,11 @@ inputs: let
guestConfigs = flip concatMapAttrs self.nixosConfigurations (_: node:
flip mapAttrs' (node.config.guests or {}) (
guestName: guestDef:
nameValuePair guestDef.nodeName
(
nameValuePair guestDef.nodeName (
if guestDef.backend == "microvm"
then node.config.microvm.vms.${guestName}.config
else node.config.containers.${guestName}
else node.config.containers.${guestName}.nixosConfiguration
)
.nixosConfiguration
));
in {
inherit