diff --git a/nixos/modules/monitoring/vpn/server.nix b/nixos/modules/monitoring/vpn/server.nix
index 0cc7be1ec47a7936d3e405f024725025d4f77f24..d61756019b74b3a37bade15745e1e7d6a9130b4f 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;
     };
   };
 }