infrastructure/meta/verify.nix

23 lines
523 B
Nix
Raw Permalink Normal View History

2024-03-13 11:24:27 +01:00
# Nix expression to check if meta module is evaluating correctly.
# To do so run `nix-build ./verify.nix`
2024-02-23 10:50:50 +01:00
let
sources = import ../npins;
pkgs = import sources.nixpkgs { };
2024-03-29 14:37:21 +01:00
dns = import sources."dns.nix";
lib = import sources.nix-lib {
inherit (pkgs) lib;
keysRoot = ../keys;
};
2024-02-23 10:50:50 +01:00
in
2024-03-29 14:37:21 +01:00
{
meta = builtins.deepSeq ((import ./.) pkgs.lib) { };
dns = dns.util.${builtins.currentSystem}.writeZone "dgnum.eu" (
pkgs.lib.recursiveUpdate { SOA.serial = 0; } (import ./dns.nix { inherit dns lib; })
);
}