diff --git a/hosts/modules/wg-home.nix b/hosts/modules/wg-home.nix index 730e1c50b..e0bf462d1 100644 --- a/hosts/modules/wg-home.nix +++ b/hosts/modules/wg-home.nix @@ -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; {