modules/networking-client: add connectivity check
This commit is contained in:
parent
a89225ba6b
commit
451e1f067b
1 changed files with 10 additions and 2 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue