forked from zentralwerk/network
nixos-module/container/wireguard: make upBandwidth optional
This commit is contained in:
parent
5fc24d2d59
commit
1293ab0a75
23
config/net/flpk.nix
Normal file
23
config/net/flpk.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
site.hosts = {
|
||||||
|
flpk-gw = {
|
||||||
|
interfaces = {
|
||||||
|
core = {
|
||||||
|
hwaddr = "0A:14:48:b7:e4:91";
|
||||||
|
type = "veth";
|
||||||
|
};
|
||||||
|
up-flpk = {
|
||||||
|
type = "wireguard";
|
||||||
|
upstream = {
|
||||||
|
provider = "flpk";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
ospf = {
|
||||||
|
allowedUpstreams = [ "upstream3" "upstream4" "freifunk" ];
|
||||||
|
# upstreamInstance = TODO;
|
||||||
|
};
|
||||||
|
role = "container";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -88,7 +88,7 @@ in
|
||||||
routeConfig.Destination = "::/0";
|
routeConfig.Destination = "::/0";
|
||||||
} ];
|
} ];
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = lib.mkIf (upstream.upBandwidth != null) ''
|
||||||
[CAKE]
|
[CAKE]
|
||||||
Parent = root
|
Parent = root
|
||||||
# DOCSIS overhead
|
# DOCSIS overhead
|
||||||
|
|
Loading…
Reference in New Issue
Block a user