feat: use systemd-resolved so VPN & WG DNS works

This commit is contained in:
Benjamin Bädorf 2024-01-24 21:02:10 +01:00
parent 099fd5a354
commit 28786af37b
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346

View file

@ -24,6 +24,20 @@
networking.firewall.enable = true;
networking.nftables.enable = true;
services.resolved = {
enable = true;
fallbackDns = [
"193.110.81.0#dns0.eu"
"2a0f:fc80::#dns0.eu"
"185.253.5.0#dns0.eu"
"2a0f:fc81::#dns0.eu"
];
dnssec = "false";
extraConfig = ''
DNSOverTLS=opportunistic
'';
};
# For rage encryption, all hosts need a ssh key pair
services.openssh = {
enable = true;