From 9469128634ad847babdca00102cab15a4f007ea7 Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@privatestorage.io> Date: Tue, 25 May 2021 22:17:09 +0000 Subject: [PATCH] Rename makePeers -> clients --- nixos/modules/monitoring/vpn/server.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/modules/monitoring/vpn/server.nix b/nixos/modules/monitoring/vpn/server.nix index 0cc7be1e..d6175601 100644 --- a/nixos/modules/monitoring/vpn/server.nix +++ b/nixos/modules/monitoring/vpn/server.nix @@ -2,11 +2,11 @@ { lib, config, ... }: let cfg = config.services.private-storage.monitoring.vpn; - makePeers = map (x: { - allowedIPs = [ "${x}/32" ]; - publicKey = lib.fileContents(cfg.server.pubKeysPath + "/${x}.pub"); - presharedKeyFile = toString cfg.server.presharedKeyFile; - }) cfg.server.vpnClientIPs; + clients = map (x: { + allowedIPs = [ "${x}/32" ]; + publicKey = lib.fileContents(cfg.server.pubKeysPath + "/${x}.pub"); + presharedKeyFile = toString cfg.server.presharedKeyFile; + }) cfg.server.vpnClientIPs; in { options.services.private-storage.monitoring.vpn.server = { @@ -66,7 +66,7 @@ in { ips = [ "${cfg.server.ip}/24" ]; listenPort = cfg.server.port; privateKeyFile = toString cfg.server.privateKeyFile; - peers = makePeers; + peers = clients; }; }; } -- GitLab