about summary refs log blame commit diff
path: root/users/tazjin/dns/default.nix
blob: 6c51cb5de4f5ae2b57332f28bfbdb5e8ac2bb12f (plain) (tree)
1
2
3
4
5
6
7
8



                                                            
                                                                    


                                                                        


                                                                             

                                               
# Performs simple (local-only) validity checks on DNS zones.
{ depot, pkgs, ... }:

let
  checkZone = zone: file: pkgs.runCommandNoCC "${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;
}