diff --git a/ops/dns/default.nix b/ops/dns/default.nix index 58af7aa6f..be7870280 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; }