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; } ];