nix/os-mods/network/default.nix
Tristan Druyen 4539cc5b75
Another reformatting & refactor
- fix all statix lints
- format with nixpkgs-fmt instead of alejandro
2023-10-17 14:35:41 +02:00

34 lines
648 B
Nix

{ config
, lib
, pkgs
, ...
}: {
networking.networkmanager.enable = true;
networking.nameservers = [
"45.90.28.0#921984.dns.nextdns.io"
"45.90.30.0#921984.dns.nextdns.io"
"2a07:a8c0::#921984.dns.nextdns.io"
"2a07:a8c1::#921984.dns.nextdns.io"
];
services = {
resolved = {
enable = true;
dnssec = "true";
domains = [ "~." ];
fallbackDns = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
extraConfig = ''
DNSOverTLS=yes
'';
};
tailscale = {
enable = true;
useRoutingFeatures = "both";
};
mozillavpn = {
enable = true;
};
};
}