From 276bb732c743a9aa4be905ec795c3de6da0f3f6d Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 5 Apr 2021 01:18:08 +0200 Subject: [PATCH] nixos-module/server/network: disable all addresses on bridges to make networkd happy --- nix/nixos-module/server/network.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nix/nixos-module/server/network.nix b/nix/nixos-module/server/network.nix index ef3118d..f19f740 100644 --- a/nix/nixos-module/server/network.nix +++ b/nix/nixos-module/server/network.nix @@ -68,15 +68,19 @@ in networkConfig.Bond = "bond0"; }; bond0 = { + DHCP = "no"; matchConfig.Name = "bond0"; - networkConfig.VLAN = map (net: "ext-${net}") ctNets; + networkConfig = { + VLAN = map (net: "ext-${net}") ctNets; + LinkLocalAddressing = "no"; + }; }; } // builtins.foldl' (result: net: result // { "${net}" = { matchConfig.Name = net; networkConfig = { - IPForward = config.site.hosts.${hostName}.isRouter; - IPv6AcceptRA = !config.site.hosts.${hostName}.isRouter; + DHCP = lib.mkDefault "no"; + LinkLocalAddressing = lib.mkDefault "no"; }; }; }) {} bridgeNets;