diff options
Diffstat (limited to 'ops/dns')
-rw-r--r-- | ops/dns/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ops/dns/default.nix b/ops/dns/default.nix index 58af7aa6f24d..be78702809ef 100644 --- a/ops/dns/default.nix +++ b/ops/dns/default.nix @@ -1,15 +1,16 @@ # Performs simple (local-only) validity checks on DNS zones. -{ pkgs, ... }: +{ depot, pkgs, ... }: let + inherit (depot.nix.utils) + drvTargets + ; + 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; - tvl-su = checkZone "tvl.su" ./tvl.su.zone; - }; -in zones // { - meta.targets = builtins.attrNames zones; +in drvTargets { + tvl-fyi = checkZone "tvl.fyi" ./tvl.fyi.zone; + tvl-su = checkZone "tvl.su" ./tvl.su.zone; } |