configuration.nix/hosts/rico1/network.nix

23 lines
475 B
Nix

{ lib, ... }: {
imports = [ ./wireguard.nix ];
networking = {
hostName = "Rico1";
networkmanager = {
enable = true;
dns = "systemd-resolved";
};
useDHCP = lib.mkDefault false;
};
services.resolved = {
enable = true;
extraConfig = ''
DNS=2620:fe::fe#dns.quad9.net 9.9.9.9#dns.quad9.net 2620:fe::9#dns.quad9.net 149.112.112.112#dns.quad9.net
FallbackDNS=
DNSOverTLS=opportunistic
Domains=~.
'';
};
}