From e9818d55c7ed29f2993d0a66c3e655af35c5d245 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 24 Apr 2020 19:41:55 +0200 Subject: [PATCH] dn42: fix --- hosts/containers/dn42/configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/containers/dn42/configuration.nix b/hosts/containers/dn42/configuration.nix index 272dc137..2ec02562 100644 --- a/hosts/containers/dn42/configuration.nix +++ b/hosts/containers/dn42/configuration.nix @@ -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; };