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

Rename makePeers -> clients

parent 97469b37
No related branches found
No related tags found
3 merge requests!101Merge staging into production,!100Merge develop into staging,!87Add monitoring VPN modules and config
Pipeline #542 failed
......@@ -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;
};
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment