dn42: fix
This commit is contained in:
parent
150fd52178
commit
e9818d55c7
|
@ -79,13 +79,13 @@ in {
|
||||||
builtins.mapAttrs (_: conf: {
|
builtins.mapAttrs (_: conf: {
|
||||||
inherit (conf.wireguard) listenPort privateKey;
|
inherit (conf.wireguard) listenPort privateKey;
|
||||||
ips = [ "${address4}/32" "${address6}/128" ];
|
ips = [ "${address4}/32" "${address6}/128" ];
|
||||||
peers = [ {
|
peers = [ ({
|
||||||
inherit (conf.wireguard) publicKey;
|
inherit (conf.wireguard) publicKey;
|
||||||
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
|
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
|
||||||
persistentKeepalive = 30;
|
persistentKeepalive = 30;
|
||||||
} // (lib.optionalAttrs (conf.wireguard ? endpoint) {
|
} // (lib.optionalAttrs (conf.wireguard ? endpoint) {
|
||||||
inherit (conf.wireguard) endpoint;
|
inherit (conf.wireguard) endpoint;
|
||||||
})];
|
})) ];
|
||||||
}) wireguardNeighbors;
|
}) wireguardNeighbors;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user