forked from zentralwerk/network
nixos-module/container/anon: fix wireguard network
This commit is contained in:
parent
51df2155de
commit
5267e4ab32
|
@ -64,7 +64,7 @@ in
|
||||||
} ];
|
} ];
|
||||||
}) tunnels;
|
}) tunnels;
|
||||||
|
|
||||||
systemd.network.networks = lib.mkIf enabled {
|
systemd.network.networks = lib.mkIf enabled ({
|
||||||
# Wireguard transported through another routing table
|
# Wireguard transported through another routing table
|
||||||
# (containing upstream by bird ospf)
|
# (containing upstream by bird ospf)
|
||||||
core.routingPolicyRules = [ {
|
core.routingPolicyRules = [ {
|
||||||
|
@ -96,7 +96,7 @@ in
|
||||||
OverheadBytes = 18
|
OverheadBytes = 18
|
||||||
Bandwidth = ${toString wireguard.upBandwidth}K
|
Bandwidth = ${toString wireguard.upBandwidth}K
|
||||||
'';
|
'';
|
||||||
}) tunnels;
|
}) tunnels);
|
||||||
|
|
||||||
networking.nat = lib.mkIf enabled {
|
networking.nat = lib.mkIf enabled {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user