nixos-module/server/network: disable all addresses on bridges to make networkd happy
This commit is contained in:
parent
7da882f324
commit
276bb732c7
|
@ -68,15 +68,19 @@ in
|
||||||
networkConfig.Bond = "bond0";
|
networkConfig.Bond = "bond0";
|
||||||
};
|
};
|
||||||
bond0 = {
|
bond0 = {
|
||||||
|
DHCP = "no";
|
||||||
matchConfig.Name = "bond0";
|
matchConfig.Name = "bond0";
|
||||||
networkConfig.VLAN = map (net: "ext-${net}") ctNets;
|
networkConfig = {
|
||||||
|
VLAN = map (net: "ext-${net}") ctNets;
|
||||||
|
LinkLocalAddressing = "no";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
} // builtins.foldl' (result: net: result // {
|
} // builtins.foldl' (result: net: result // {
|
||||||
"${net}" = {
|
"${net}" = {
|
||||||
matchConfig.Name = net;
|
matchConfig.Name = net;
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
IPForward = config.site.hosts.${hostName}.isRouter;
|
DHCP = lib.mkDefault "no";
|
||||||
IPv6AcceptRA = !config.site.hosts.${hostName}.isRouter;
|
LinkLocalAddressing = lib.mkDefault "no";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}) {} bridgeNets;
|
}) {} bridgeNets;
|
||||||
|
|
Loading…
Reference in New Issue