From 467354904225d84fd781e6873763014b01b3db2b Mon Sep 17 00:00:00 2001 From: Asmir A Date: Thu, 15 Aug 2024 17:36:00 +0200 Subject: [PATCH] nixy/wg: add nx --- nixy/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixy/configuration.nix b/nixy/configuration.nix index 070d1cc..d700c54 100644 --- a/nixy/configuration.nix +++ b/nixy/configuration.nix @@ -151,6 +151,19 @@ } ]; }; + + neox_wg = { + ips = ["192.168.51.2/32"]; + privateKeyFile = config.sops.secrets."wg_privkey".path; + peers = [ + { + publicKey = builtins.readFile ../nixy/wg_pubkey_nx; + allowedIPs = ["192.168.2.0/24"]; + endpoint = "185.194.64.26:51820"; + persistentKeepalive = 25; + } + ]; + }; }; };