Skip to content
Snippets Groups Projects
Commit 94691286 authored by Florian Sesser's avatar Florian Sesser
Browse files

Rename makePeers -> clients

parent 97469b37
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
{ lib, config, ... }: let
cfg = config.services.private-storage.monitoring.vpn;
makePeers = map (x: {
clients = map (x: {
allowedIPs = [ "${x}/32" ];
publicKey = lib.fileContents(cfg.server.pubKeysPath + "/${x}.pub");
presharedKeyFile = toString cfg.server.presharedKeyFile;
......@@ -66,7 +66,7 @@ in {
ips = [ "${cfg.server.ip}/24" ];
listenPort = cfg.server.port;
privateKeyFile = toString cfg.server.privateKeyFile;
peers = makePeers;
peers = clients;
};
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment