~aasg/nixexprs

8ad746331e4714f1d9716a0d2b1923d8225bc3c3 — Aluísio Augusto Silva Gonçalves a month ago a6d530c
modules/wireguard-systemd: Support keepalive setting

This field was originally added manually to the attrset (so we could
convert nulls into zeroes) before we switched to using pipe, and we
forgot to un-filter it once we switched.
1 files changed, 1 insertions(+), 1 deletions(-)

M modules/services/networking/wireguard-systemd.nix
M modules/services/networking/wireguard-systemd.nix => modules/services/networking/wireguard-systemd.nix +1 -1
@@ 6,7 6,7 @@ let

  generatePeerConfig = peer: {
    wireguardPeerConfig = pipe peer [
      (getAttrs [ "publicKey" "presharedKeyFile" "allowedIPs" "endpoint" ])
      (getAttrs [ "publicKey" "presharedKeyFile" "allowedIPs" "endpoint" "persistentKeepalive" ])
      (filterAttrs (name: value: value != null))
      capitalizeAttrNames
    ];