dn42: fix

This commit is contained in:
Astro 2020-04-24 19:41:55 +02:00
parent 150fd52178
commit e9818d55c7
1 changed files with 2 additions and 2 deletions

View File

@ -79,13 +79,13 @@ in {
builtins.mapAttrs (_: conf: {
inherit (conf.wireguard) listenPort privateKey;
ips = [ "${address4}/32" "${address6}/128" ];
peers = [ {
peers = [ ({
inherit (conf.wireguard) publicKey;
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
persistentKeepalive = 30;
} // (lib.optionalAttrs (conf.wireguard ? endpoint) {
inherit (conf.wireguard) endpoint;
})];
})) ];
}) wireguardNeighbors;
};