From 0f33c97abb3baae257af07348f91f6caa078a2e0 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 8 Aug 2024 22:32:18 +0200 Subject: [PATCH] wireguard: updates --- hosts/dumpyourvms/networking.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/dumpyourvms/networking.nix b/hosts/dumpyourvms/networking.nix index 97beacff..08b10ae5 100644 --- a/hosts/dumpyourvms/networking.nix +++ b/hosts/dumpyourvms/networking.nix @@ -1,8 +1,13 @@ { pkgs, + lib, ... }: { + systemd.services.wg-quick-wg5.serviceConfig.Type = lib.mkForce "simple"; + systemd.services.wg-quick-wg5.serviceConfig.Restart = "on-failure"; + systemd.services.wg-quick-wg5.serviceConfig.RestartSec = "5s"; + networking = { networkmanager.dns = "systemd-resolved"; @@ -59,6 +64,7 @@ ]; }; wg1 = { + autostart = false; address = ["192.168.188.203/24"]; privateKeyFile = "/etc/wireguard/wg1.privatekey"; @@ -134,7 +140,8 @@ publicKey = "UhPW8jebAPaMYqjJfSFO9QAMhk0E+dq4i6lB4Wjg91Q="; presharedKeyFile = "/etc/wireguard/wg5.presharedkey"; allowedIPs = [ "192.168.13.0/24" ]; - endpoint = "ktjh20jr89gkcqwr.myfritz.net:59538"; + endpoint = "svxqr7qjmk9beu7t.myfritz.net:59538"; + #endpoint = "84.44.134.172:59538"; persistentKeepalive = 25; } ];