forked from zentralwerk/network
nixos-module/container/upstream: fix syntax
This commit is contained in:
parent
2133522dc8
commit
7d6f3f521b
|
@ -32,12 +32,15 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} // builtins.mapAttrs (_: { upstream, ... }:
|
} // builtins.mapAttrs (_: { upstream, ... }:
|
||||||
|
# DHCP
|
||||||
lib.optionalAttrs (hostName != "flpk-gw") {
|
lib.optionalAttrs (hostName != "flpk-gw") {
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
networkConfig.IPv6AcceptRA = true;
|
networkConfig.IPv6AcceptRA = true;
|
||||||
dhcpV6Config.PrefixDelegationHint = "::/56";
|
dhcpV6Config.PrefixDelegationHint = "::/56";
|
||||||
} // {
|
}
|
||||||
|
//
|
||||||
# Traffic Shaping
|
# Traffic Shaping
|
||||||
|
{
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
[CAKE]
|
[CAKE]
|
||||||
Parent = root
|
Parent = root
|
||||||
|
@ -54,7 +57,7 @@ in
|
||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
}) upstreamInterfaces;
|
) upstreamInterfaces;
|
||||||
|
|
||||||
networking.nat = lib.optionalAttrs enabled {
|
networking.nat = lib.optionalAttrs enabled {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user