nixos-module/server/network: attach vlan interfaces to bridges
This commit is contained in:
parent
276bb732c7
commit
dbe5a867a7
|
@ -75,7 +75,7 @@ in
|
||||||
LinkLocalAddressing = "no";
|
LinkLocalAddressing = "no";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} // builtins.foldl' (result: net: result // {
|
} // (builtins.foldl' (result: net: result // {
|
||||||
"${net}" = {
|
"${net}" = {
|
||||||
matchConfig.Name = net;
|
matchConfig.Name = net;
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
|
@ -83,6 +83,11 @@ in
|
||||||
LinkLocalAddressing = lib.mkDefault "no";
|
LinkLocalAddressing = lib.mkDefault "no";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}) {} bridgeNets;
|
}) {} bridgeNets) // builtins.foldl' (result: net: result // {
|
||||||
|
"ext-${net}" = {
|
||||||
|
matchConfig.Name = "ext-${net}";
|
||||||
|
networkConfig.Bridge = net;
|
||||||
|
};
|
||||||
|
}) {} ctNets;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue