forked from pub-solar/os
29 lines
569 B
Nix
29 lines
569 B
Nix
{ lib, ... }: {
|
|
imports = [ ../misc/adblocking.nix ];
|
|
|
|
networking.networkmanager = {
|
|
enable = true;
|
|
wifi.backend = "iwd";
|
|
dns = lib.mkForce "none";
|
|
extraConfig = ''
|
|
[main]
|
|
systemd-resolved=false
|
|
'';
|
|
};
|
|
|
|
networking.nameservers =
|
|
[ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
|
|
|
|
networking.wireless.iwd.enable = true;
|
|
|
|
services.resolved = {
|
|
enable = true;
|
|
dnssec = "true";
|
|
fallbackDns = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
|
|
extraConfig = ''
|
|
DNSOverTLS=yes
|
|
'';
|
|
};
|
|
|
|
}
|