From dbe5a867a77dd4ae339454f032d0d9612bf85e67 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 5 Apr 2021 01:21:47 +0200 Subject: [PATCH] nixos-module/server/network: attach vlan interfaces to bridges --- nix/nixos-module/server/network.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nix/nixos-module/server/network.nix b/nix/nixos-module/server/network.nix index f19f740..fe5c02a 100644 --- a/nix/nixos-module/server/network.nix +++ b/nix/nixos-module/server/network.nix @@ -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; }; }