nixos-module/container/upstream: fix syntax

This commit is contained in:
Astro 2022-09-18 19:06:59 +02:00
parent 2133522dc8
commit 7d6f3f521b
1 changed files with 6 additions and 3 deletions

View File

@ -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;