Revert "modules.services.wireguard: always persistentKeepalive"

This reverts commit cea0bded1c.
This commit is contained in:
2025-05-12 19:32:08 +08:00
parent cea0bded1c
commit c1ebd6166b

View File

@@ -39,7 +39,7 @@ inputs:
{
inherit (peer) name;
inherit (peer.value) publicKey allowedIPs endpoint;
persistentKeepalive = 10;
persistentKeepalive = if peer.value.endpoint != null then 10 else null;
})
(inputs.localLib.attrsToList wg.value.peer);
};