depot/cluster/services/dns/default.nix

39 lines
711 B
Nix
Raw Permalink Normal View History

2022-08-07 20:58:37 +03:00
{ config, ... }:
let
inherit (config.vars) hosts;
in
{
vars.pdns-api-key-secret = {
file = ./pdns-api-key.age;
mode = "0400";
};
2022-08-07 20:58:37 +03:00
links = {
dnsResolver = {
ipv4 = hosts.VEGAS.interfaces.vstub.addr;
port = 53;
};
powerdns-api = {
ipv4 = config.vars.mesh.VEGAS.meshIp;
protocol = "http";
};
};
services.dns = {
nodes = {
master = [ "VEGAS" ];
slave = [ "prophet" ];
coredns = [ "VEGAS" ];
client = [ "VEGAS" "prophet" ];
2022-08-07 20:58:37 +03:00
};
nixos = {
master = [
./authoritative.nix
./admin.nix
];
slave = ./authoritative.nix;
coredns = ./coredns.nix;
client = ./client.nix;
2022-08-07 20:58:37 +03:00
};
};
}