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.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" ];