modules: secrets: wireguard: remove unused file

The peer definitions have been inlined into the Wireguard module a long
time ago.
This commit is contained in:
Bruno BELANYI 2023-04-13 17:05:02 +00:00
parent 54e9303319
commit 68bf36c45c
1 changed files with 0 additions and 30 deletions

View File

@ -1,30 +0,0 @@
{ lib, ... }:
let
peerSpec = {
# "Server"
porthos = {
clientNum = 1;
externalIp = "91.121.177.163";
};
# "Clients"
aramis = {
clientNum = 2;
};
richelieu = {
clientNum = 3;
};
};
makePeer = name: attrs: with lib; {
inherit (attrs) clientNum;
publicKey = fileContents (./. + "/${name}/public.key");
privateKey = fileContents (./. + "/${name}/secret.key");
} // optionalAttrs (attrs ? externalIp) {
inherit (attrs) externalIp;
};
in
{
peers = builtins.mapAttrs makePeer peerSpec;
}