depot/cluster/services/dns/default.nix
2022-08-07 20:01:48 +02:00

33 lines
558 B
Nix

{ config, ... }:
let
inherit (config.vars) hosts;
in
{
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" ];
};
nixos = {
master = [
./authoritative.nix
./admin.nix
];
slave = ./authoritative.nix;
coredns = ./coredns.nix;
};
};
}