From 42d74ddd668ba112bfbea35b04af0aadd21d68f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 29 Nov 2023 15:39:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20(neodymium/system)=20remove=20no?= =?UTF-8?q?w=20obsolete=20wireguard=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../neodymium/system/networking/wireguard.nix | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 hosts/neodymium/system/networking/wireguard.nix diff --git a/hosts/neodymium/system/networking/wireguard.nix b/hosts/neodymium/system/networking/wireguard.nix deleted file mode 100644 index 788d5a2..0000000 --- a/hosts/neodymium/system/networking/wireguard.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ lib, ... }: { - networking.wg-quick.interfaces = { - wg0 = { - # client - privateKeyFile = "/root/wireguard-keys/private"; - address = [ "10.0.0.3/24" "fd02:002:002::3/64" ]; - dns = [ "10.0.0.1" ]; - - # server - peers = [{ - publicKey = "y36/EpLUerwM6NSGsVDCkb37Wj/Z3CI0mPFGatVa0Ws="; - allowedIPs = [ "0.0.0.0/0" "::0/0" ]; - endpoint = "fainsin.bzh:5553"; - persistentKeepalive = 30; - }]; - }; - }; - - # modify the systemd service to restart on failure every 10 seconds - systemd.services.wg-quick-wg0 = { - serviceConfig = { - Type = lib.mkForce "simple"; - Restart = "on-failure"; - RestartSec = "10s"; - }; - unitConfig = { - # ensures Restart= is always honoured - StartLimitIntervalSec = 0; - }; - }; -}