dn42: fix
This commit is contained in:
parent
150fd52178
commit
e9818d55c7
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue