forest/roles/coredns/default.nix

19 lines
344 B
Nix
Raw Normal View History

2023-10-02 17:47:47 +00:00
{ config, pkgs, ... }: rec {
services.coredns = {
enable = true;
config = ''
ley {
bind 0.0.0.0
file ${pkgs.writeText "ash.ley" (builtins.readFile ./ash.ley)}
prometheus 0.0.0.0:9153
}
. {
bind 0.0.0.0
forward . tls://1.1.1.1 tls://1.0.0.1
prometheus 0.0.0.0:9153
}
'';
};
}