From e74af8434cad48de5b4fe03b6fe0e18837236896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 29 Nov 2023 15:32:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20(hydrogen/services)=20remove=20w?= =?UTF-8?q?ireguard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/services/wireguard/default.nix | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 hosts/hydrogen/services/wireguard/default.nix diff --git a/hosts/hydrogen/services/wireguard/default.nix b/hosts/hydrogen/services/wireguard/default.nix deleted file mode 100644 index 90a68ea..0000000 --- a/hosts/hydrogen/services/wireguard/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ ... }: { - networking = { - firewall = { - allowedUDPPorts = [ - 5553 # wireguard - ]; - }; - - nat = { - enable = true; - enableIPv6 = true; - externalInterface = "ens3"; - internalInterfaces = [ "wg0" ]; - }; - - wireguard.interfaces = { - wg0 = { - ips = [ "10.0.0.1/24" "fd02:002:002::1/64" ]; - listenPort = 5553; - privateKeyFile = "/root/wg-private"; - peers = [ - { # pixel - publicKey = "HS2q+PpPPwxqT1jCD7D4puqr4ZyaXV5TostavlYWBx0="; - allowedIPs = [ "10.0.0.2/32" "fd02:002:002::2/64" ]; - } - { # neodymium - publicKey = "IFeRvelEilNRLkhWgFKL9HrJ9XYsm+r4yvv23CigETk="; - allowedIPs = [ "10.0.0.3/32" "fd02:002:002::3/64" ]; - } - ]; - }; - }; - }; -}