From f650f0d467d3656e3ef053efdfeb26ba8846ad47 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 22 Mar 2024 16:19:08 +0000 Subject: [PATCH] Revert "Disable VPN for Vanguard" This reverts commit ffa1afeb052b5696cf79a0846d14228c9a2e88be. --- hosts/Vanguard/configuration.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hosts/Vanguard/configuration.nix b/hosts/Vanguard/configuration.nix index 9ff7aadc..cd927cf3 100644 --- a/hosts/Vanguard/configuration.nix +++ b/hosts/Vanguard/configuration.nix @@ -11,4 +11,20 @@ hardware.opengl.extraPackages = with pkgs; [amdvlk rocmPackages.clr.icd]; hardware.opengl.extraPackages32 = [pkgs.driversi686Linux.amdvlk]; services.ollama.enable = true; + networking.wg-quick.interfaces = { + protonvpn = { + address = ["10.2.0.2/32"]; + dns = ["10.2.0.1"]; + privateKeyFile = "/root/wireguard-keys/privatekey"; + peers = [ + { + publicKey = "ic5vxFWQEX5lRVwgx2vfE1xYKXQuwQi1TGDSkR0fsEY="; + # presharedKeyFile = "/root/wireguard-keys/preshared_from_peer0_key"; + allowedIPs = ["0.0.0.0/0"]; + endpoint = "146.70.96.66:51820"; + persistentKeepalive = 25; + } + ]; + }; + }; }