[microvm] separate enableHostBridge from deployHosts

This commit is contained in:
2024-11-21 16:07:42 +01:00
parent 1bafdec4ab
commit 3fe5b8da20
+2 -1
View File
@@ -4,7 +4,6 @@ with lib;
let
cfg = config.services.malobeo.microvm;
hostsEmpty = length cfg.deployHosts == 0;
in
{
options = {
@@ -56,6 +55,8 @@ in
} ];
};
} // mkIf (!hostEmpty) {
# connect the vms to the bridge
networks."11-microvm" = {
matchConfig.Name = "vm-*";