From 7d6f3f521ba8afba5ad76feec602082ea3574a2b Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 18 Sep 2022 19:06:59 +0200 Subject: [PATCH] nixos-module/container/upstream: fix syntax --- nix/nixos-module/container/upstream.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nix/nixos-module/container/upstream.nix b/nix/nixos-module/container/upstream.nix index f3c88d5..de23478 100644 --- a/nix/nixos-module/container/upstream.nix +++ b/nix/nixos-module/container/upstream.nix @@ -32,12 +32,15 @@ in }; }; } // builtins.mapAttrs (_: { upstream, ... }: + # DHCP lib.optionalAttrs (hostName != "flpk-gw") { DHCP = "yes"; networkConfig.IPv6AcceptRA = true; dhcpV6Config.PrefixDelegationHint = "::/56"; - } // { - # Traffic Shaping + } + // + # Traffic Shaping + { extraConfig = '' [CAKE] Parent = root @@ -54,7 +57,7 @@ in ''} ''; } - }) upstreamInterfaces; + ) upstreamInterfaces; networking.nat = lib.optionalAttrs enabled { enable = true;