dn42: fix wireguard

This commit is contained in:
Astro 2020-04-24 19:28:37 +02:00
parent 68f6b337c9
commit ea275446d5
1 changed files with 16 additions and 14 deletions

View File

@ -70,8 +70,9 @@ in {
servers = builtins.mapAttrs (name: conf: mkServer name conf) openvpnNeighbors;
};
networking.wireguard.enable = true;
networking.wireguard.interfaces =
networking.wireguard = {
enable = true;
interfaces =
let
wireguardNeighbors = lib.filterAttrs (_: conf: conf ? wireguard) neighbors;
in
@ -84,6 +85,7 @@ in {
persistentKeepalive = 30;
} ];
}) wireguardNeighbors;
};
services.bird2 = {
enable = true;