nixos-module/container/anon: fix wireguard network

This commit is contained in:
Astro 2021-05-27 00:19:04 +02:00
parent 51df2155de
commit 5267e4ab32
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ in
} ];
}) tunnels;
systemd.network.networks = lib.mkIf enabled {
systemd.network.networks = lib.mkIf enabled ({
# Wireguard transported through another routing table
# (containing upstream by bird ospf)
core.routingPolicyRules = [ {
@ -96,7 +96,7 @@ in
OverheadBytes = 18
Bandwidth = ${toString wireguard.upBandwidth}K
'';
}) tunnels;
}) tunnels);
networking.nat = lib.mkIf enabled {
enable = true;