sid.ovh/hosts/sid/services/coredns.nix
sid dda565aed5
All checks were successful
Build hosts / build-hosts (pull_request) Successful in 20s
Flake check / flake-check (pull_request) Successful in 22s
netdata runs on host sid
2026-05-05 13:41:46 +02:00

38 lines
856 B
Nix

{ constants, ... }:
{
services.resolved.enable = false;
networking.resolvconf.enable = false;
networking.nameservers = [ "127.0.0.1" ];
services.coredns = {
enable = true;
config = with constants; ''
.:53 {
bind 0.0.0.0
hosts {
${hosts.sid.ip} ${ca-fqdn}
# Intranet services
${hosts.sid.ip} ${services.netdata.fqdn}
${hosts.sid.ip} ${services.vaultwarden.fqdn}
${hosts.sid.ip} ${services.webdav.fqdn}
# Tailnet hosts
${hosts.rx4.ip} rx4.tail
${hosts.sid.ip} sid.tail
${hosts.vde.ip} vde.tail
fallthrough
}
forward . 1.1.1.1 8.8.8.8
cache 30
log
errors
}
'';
};
networking.firewall.allowedUDPPorts = [ 53 ];
networking.firewall.allowedTCPPorts = [ 53 ];
}