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
|
|
|
{
|
2024-04-03 19:49:36 +02:00
|
|
|
meta = pkgs.writers.writeJSON "meta.json" ((import ./.) pkgs.lib);
|
2024-03-29 14:37:21 +01:00
|
|
|
|
|
|
|
dns = dns.util.${builtins.currentSystem}.writeZone "dgnum.eu" (
|
|
|
|
pkgs.lib.recursiveUpdate { SOA.serial = 0; } (import ./dns.nix { inherit dns lib; })
|
|
|
|
);
|
|
|
|
}
|