From 95b6639009b7c954b07d042ec09dad72d6784d63 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Tue, 2 Aug 2022 11:08:01 +0200 Subject: [PATCH] Apply nixfmt --- modules/wireguard.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wireguard.nix b/modules/wireguard.nix index 60f57e2..4af920b 100644 --- a/modules/wireguard.nix +++ b/modules/wireguard.nix @@ -60,7 +60,7 @@ description = "Wireguard public key for this peer"; }; - additionalAllowedIps = mkOption{ + additionalAllowedIps = mkOption { type = types.listOf types.str; description = "Additional IPs to add to allowedIPs "; default = [ ]; @@ -136,7 +136,7 @@ mkPeerPeer = prefixes: peers: peer: { allowedIPs = (mkAddresses prefixes peer.localIp) - ++ (lib.concatMap (mkAddresses prefixes) peer.extraIps) ++ (if lib.hasAttr hostName peers then peers.${hostName}.additionalAllowedIps else [ ]); + ++ (lib.concatMap (mkAddresses prefixes) peer.extraIps) ++ (if lib.hasAttr hostName peers then peers.${hostName}.additionalAllowedIps else [ ]); persistentKeepalive = 25; inherit (peer) publicKey endpoint; };