2024-01-04 21:51:15 +05:30
|
|
|
{ lib, ... }: {
|
|
|
|
imports = [ ./wireguard.nix ];
|
|
|
|
networking = {
|
|
|
|
hostName = "Rico0";
|
|
|
|
|
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
dns = "systemd-resolved";
|
|
|
|
};
|
|
|
|
|
|
|
|
useDHCP = lib.mkDefault false;
|
|
|
|
};
|
|
|
|
|
2024-01-04 21:51:15 +05:30
|
|
|
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=~.
|
2024-01-04 21:51:16 +05:30
|
|
|
DNSStubListener=no
|
2024-01-04 21:51:15 +05:30
|
|
|
'';
|
|
|
|
};
|
2024-01-04 21:51:16 +05:30
|
|
|
environment.etc."resolv.conf".source = lib.mkForce "/run/systemd/resolve/resolv.conf";
|
2024-01-04 21:51:15 +05:30
|
|
|
}
|