diff --git a/nixos/modules/monitoring/vpn/server.nix b/nixos/modules/monitoring/vpn/server.nix
index 358ca0b0228b8833a34dccbfefbc95798aac514e..13a25175187a5dd8baff5a42c61b673dbf587e4c 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 = peerIPs: pubKeysPath: map (x: {
-                  allowedIPs = [ "${x}/32" ];
-                  publicKey = lib.fileContents(pubKeysPath + "/${x}.pub");
-                  presharedKeyFile = toString cfg.server.presharedKeyFile;
-                }) peerIPs;
+  makePeers = 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 = {
@@ -74,7 +74,7 @@ in {
       ips = [ "${cfg.server.ip}/24" ];
       listenPort = cfg.server.port;
       privateKeyFile = toString cfg.server.privateKeyFile;
-      peers = makePeers cfg.server.vpnClientIPs cfg.server.pubKeysPath;
+      peers = makePeers;
     };
   };
 }