tvl-depot/users/tazjin/dns/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
396 B
Nix
Raw Normal View History

# Performs simple (local-only) validity checks on DNS zones.
{ depot, pkgs, ... }:
let
checkZone = zone: file: pkgs.runCommand "${zone}-check" { } ''
${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
'';
in
depot.nix.readTree.drvTargets {
kontemplate-works = checkZone "kontemplate.works" ./kontemplate.works.zone;
tazj-in = checkZone "tazj.in" ./tazj.in.zone;
}