infra/nix/os/snippets/systemd-resolved.nix

29 lines
504 B
Nix
Raw Normal View History

2024-11-15 10:17:56 +01:00
{ lib, ... }:
{
networking.nameservers = [
# https://dnsforge.de/
"176.9.93.198"
"176.9.1.117"
# TODO: enable IPv6
# "2a01:4f8:151:34aa::198"
# "2a01:4f8:141:316d::117"
];
services.resolved = {
enable = true;
dnssec = "true";
2024-11-15 10:17:56 +01:00
domains = [ "~." ];
# TODO: figure out why "true" doesn't work
dnsovertls = "opportunistic";
2024-11-15 10:17:56 +01:00
fallbackDns = lib.mkForce [ ];
# TODO: IPv6
# extraConfig = ''
# DNSStubListenerExtra=[::1]:53
# '';
};
}