wg-home: remove dead code

This commit is contained in:
2024-07-05 20:05:25 +00:00
parent 5d80e298b5
commit a31f67b793

View File

@@ -6,7 +6,6 @@
let
cfg = config.sane.services.wg-home;
server-cfg = config.sane.hosts.by-name."servo".wg-home;
mkPeer = { ips, pubkey, endpoint }: {
publicKey = pubkey;
allowedIPs = builtins.map (k: if builtins.match ".*/.*" k != null then k else "${k}/32") ips;
@@ -26,11 +25,6 @@ let
inherit (p) pubkey endpoint;
ips = [ p.ip ];
}) hosts;
# make a single peer which routes all the given hosts
mkServerPeer = hosts: mkPeer {
inherit (server-cfg) pubkey endpoint;
ips = (builtins.map (h: h.ip) hosts) ++ [ "0.0.0.0/0" ];
};
in
{
options = with lib; {