2022-02-05 21:42:36 +02:00
|
|
|
{
|
|
|
|
networking.useDHCP = false;
|
|
|
|
|
2022-03-17 22:59:04 +02:00
|
|
|
networking.networkmanager = {
|
|
|
|
dns = "systemd-resolved";
|
|
|
|
enableStrongSwan = false;
|
|
|
|
extraConfig = ''
|
|
|
|
[connectivity]
|
|
|
|
uri=http://whoami.privatevoid.net/online
|
|
|
|
response=CONNECTED_GLOBAL
|
|
|
|
interval=120
|
|
|
|
'';
|
|
|
|
};
|
2022-02-05 21:42:36 +02:00
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
|
|
|
fallbackDns = [ "10.1.0.1" ];
|
|
|
|
llmnr = "true";
|
|
|
|
dnssec = "false";
|
|
|
|
extraConfig = "Cache=no-negative";
|
|
|
|
};
|
|
|
|
networking.firewall = let
|
|
|
|
ports = [
|
|
|
|
5355 # llmnr
|
|
|
|
];
|
|
|
|
in {
|
|
|
|
allowedTCPPorts = ports;
|
|
|
|
allowedUDPPorts = ports;
|
|
|
|
};
|
|
|
|
}
|