nixos-module/server/network: attach vlan interfaces to bridges

This commit is contained in:
Astro 2021-04-05 01:21:47 +02:00
parent 276bb732c7
commit dbe5a867a7
1 changed files with 7 additions and 2 deletions

View File

@ -75,7 +75,7 @@ in
LinkLocalAddressing = "no";
};
};
} // builtins.foldl' (result: net: result // {
} // (builtins.foldl' (result: net: result // {
"${net}" = {
matchConfig.Name = net;
networkConfig = {
@ -83,6 +83,11 @@ in
LinkLocalAddressing = lib.mkDefault "no";
};
};
}) {} bridgeNets;
}) {} bridgeNets) // builtins.foldl' (result: net: result // {
"ext-${net}" = {
matchConfig.Name = "ext-${net}";
networkConfig.Bridge = net;
};
}) {} ctNets;
};
}