1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-10-09 21:03:30 +02:00
config/modules/linux/dns.nix
TheGeneralist bd887883f7
nixos: migrate server services to thegeneralist
Move hosted services and secrets from the retired central hosts, persist USB storage and ownership, harden RTL8822BU Wi-Fi, repair DNS behavior, and order CoreDNS after Tailscale.
2026-10-09 14:21:55 +02:00

13 lines
261 B
Nix

{ config, lib, ... }: let
inherit (lib) mkIf;
in {
services.resolved = mkIf (!config.isServer) {
enable = true;
settings.Resolve = {
DNS = config.dnsServers;
DNSSEC = "allow-downgrade";
DNSOverTLS = "opportunistic";
};
};
}