modules/networking-client: add connectivity check

This commit is contained in:
Max Headroom 2022-03-17 21:59:04 +01:00
parent a89225ba6b
commit 451e1f067b

View file

@ -1,8 +1,16 @@
{ {
networking.useDHCP = false; networking.useDHCP = false;
networking.networkmanager.dns = "systemd-resolved"; networking.networkmanager = {
networking.networkmanager.enableStrongSwan = false; dns = "systemd-resolved";
enableStrongSwan = false;
extraConfig = ''
[connectivity]
uri=http://whoami.privatevoid.net/online
response=CONNECTED_GLOBAL
interval=120
'';
};
services.resolved = { services.resolved = {
enable = true; enable = true;
fallbackDns = [ "10.1.0.1" ]; fallbackDns = [ "10.1.0.1" ];