diff --git a/configurers/networkd.nix b/configurers/networkd.nix index 93c5b0f..039b32c 100644 --- a/configurers/networkd.nix +++ b/configurers/networkd.nix @@ -35,9 +35,8 @@ with getKeyProviderFuncs keyProviders inputs intermediateConfig localPeerName; PublicKey = getPeerPubKey remotePeerName; AllowedIPs = map (ip: asCidr ip) peerConnection.ipAddresses; PresharedKeyFile = getSubnetPSKFile subnetName; - }; + } // (if peerConnection.endpoint ? persistentKeepalive then {PersistentKeepalive = peerConnection.endpoint.persistentKeepalive;} else {}); } - // (if peerConnection.endpoint ? persistentKeepalive then {PersistentKeepalive = peerConnection.endpoint.persistentKeepalive;} else {}) // (warnIf (peerConnection.endpoint ? dynamicEndpointRefreshSeconds) "dynamicEndpointRefreshSeconds not supported for networkd" {}) // (warnIf (peerConnection.endpoint ? dynamicEndpointRefreshRestartSeconds) "dynamicEndpointRefreshRestartSeconds not supported for networkd" {}) );