diff --git a/modules/networking-client/default.nix b/modules/networking-client/default.nix index 432d788..0884ad5 100644 --- a/modules/networking-client/default.nix +++ b/modules/networking-client/default.nix @@ -1,8 +1,16 @@ { networking.useDHCP = false; - networking.networkmanager.dns = "systemd-resolved"; - networking.networkmanager.enableStrongSwan = false; + networking.networkmanager = { + dns = "systemd-resolved"; + enableStrongSwan = false; + extraConfig = '' + [connectivity] + uri=http://whoami.privatevoid.net/online + response=CONNECTED_GLOBAL + interval=120 + ''; + }; services.resolved = { enable = true; fallbackDns = [ "10.1.0.1" ];