about summary refs log tree commit diff
path: root/ops/dns/default.nix
blob: 136a4c58dca74dccde5935015eed075ce8acaa40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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 {
  nixery-dev = checkZone "nixery.dev" ./nixery.dev.zone;
  tvl-fyi = checkZone "tvl.fyi" ./tvl.fyi.zone;
  tvl-su = checkZone "tvl.su" ./tvl.su.zone;
}