networkmanager: use resolved and set dns over tls

This commit is contained in:
Timothy DeHerrera 2020-07-21 14:34:21 -06:00
parent 29f5382539
commit 093513e313
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 22 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, unstablePkgs, ... }:
let inherit (lib) fileContents;
in {
@ -119,6 +119,8 @@ in {
};
systemd.package = unstablePkgs.systemd;
services.earlyoom.enable = true;
users.mutableUsers = false;

View File

@ -1,7 +1,23 @@
{ ... }: {
imports = [ ../misc ];
imports = [ ../misc/adblocking.nix ];
networking.networkmanager = {
enable = true;
wifi.backend = "iwd";
};
networking.nameservers =
[ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
networking.networkmanager.enable = true;
networking.networkmanager.wifi.backend = "iwd";
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
'';
};
}