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

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;
}