[microvm] mv mkIf down one layer

This commit is contained in:
2024-11-21 15:12:32 +01:00
parent d0ed65d13a
commit bdd13a204f

View File

@@ -29,9 +29,8 @@ in
inputs.microvm.nixosModules.host inputs.microvm.nixosModules.host
]; ];
config = mkIf cfg.enableHostBridge config = {
{ systemd.network = mkIf cfg.enableHostBridge {
systemd.network = {
enable = true; enable = true;
# create a bride device that all the microvms will be connected to # create a bride device that all the microvms will be connected to
netdevs."10-microvm".netdevConfig = { netdevs."10-microvm".netdevConfig = {