nixos-module/container/upstream: fix syntax
This commit is contained in:
parent
2133522dc8
commit
7d6f3f521b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue