blob: d2f75f836c003069d5ef9f761bee19b4113053b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Performs simple (local-only) validity checks on DNS zones.
{ pkgs, ... }:
let
checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" {} ''
${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
'';
zones = {
tvl-fyi = checkZone "tvl.fyi" ./tvl.fyi.zone;
};
in zones // {
meta.targets = builtins.attrNames zones;
}
|