infrastructure/meta/verify.nix
Tom Hubrecht 4a275fd07e
All checks were successful
Check meta / check_meta (push) Successful in 20s
Check meta / check_dns (push) Successful in 21s
build configuration / build_vault01 (push) Successful in 1m18s
build configuration / build_storage01 (push) Successful in 1m21s
build configuration / build_compute01 (push) Successful in 1m29s
build configuration / build_web02 (push) Successful in 1m10s
build configuration / build_rescue01 (push) Successful in 1m10s
build configuration / build_web01 (push) Successful in 1m49s
lint / check (push) Successful in 23s
build configuration / build_geo01 (push) Successful in 1m2s
build configuration / build_geo02 (push) Successful in 1m4s
build configuration / build_bridge01 (push) Successful in 1m12s
build configuration / push_to_cache_storage01 (push) Successful in 1m26s
build configuration / push_to_cache_rescue01 (push) Successful in 1m24s
build configuration / push_to_cache_compute01 (push) Successful in 1m46s
build configuration / push_to_cache_web02 (push) Successful in 1m21s
build configuration / push_to_cache_geo01 (push) Successful in 1m10s
build configuration / push_to_cache_geo02 (push) Successful in 1m13s
build configuration / push_to_cache_bridge01 (push) Successful in 1m16s
build configuration / push_to_cache_web01 (push) Successful in 2m10s
fix(dns): Update to correct dns.nix version
2024-09-20 23:37:01 +02:00

34 lines
814 B
Nix

# Nix expression to check if meta module is evaluating correctly.
# To do so run `nix-build ./verify.nix`
let
sources = import ../npins;
pkgs = import sources.nixpkgs { };
dns = import sources."dns.nix" { inherit pkgs; };
lib = import sources.nix-lib {
inherit (pkgs) lib;
keysRoot = ../keys;
};
in
{
meta =
let
config = (import ./.) pkgs.lib;
failed = builtins.map (x: "- ${x.message}") (builtins.filter (x: !x.assertion) config.assertions);
in
if (failed != [ ]) then
throw ''
Failed assertions:
${builtins.concatStringsSep "\n" failed}
''
else
pkgs.writers.writeJSON "meta.json" config;
dns = dns.util.writeZone "dgnum.eu" (
pkgs.lib.recursiveUpdate { SOA.serial = 0; } (import ./dns.nix { inherit dns lib; })
);
}