[microvm] separate enableHostBridge from deployHosts
This commit is contained in:
@@ -4,7 +4,6 @@ with lib;
|
|||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.malobeo.microvm;
|
cfg = config.services.malobeo.microvm;
|
||||||
hostsEmpty = length cfg.deployHosts == 0;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
@@ -56,6 +55,8 @@ in
|
|||||||
} ];
|
} ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // mkIf (!hostEmpty) {
|
||||||
|
|
||||||
# connect the vms to the bridge
|
# connect the vms to the bridge
|
||||||
networks."11-microvm" = {
|
networks."11-microvm" = {
|
||||||
matchConfig.Name = "vm-*";
|
matchConfig.Name = "vm-*";
|
||||||
|
|||||||
Reference in New Issue
Block a user