All checks were successful
Check meta / check_dns (pull_request) Successful in 17s
Check meta / check_meta (pull_request) Successful in 19s
Check workflows / check_workflows (pull_request) Successful in 16s
Build all the nodes / ap01 (pull_request) Successful in 31s
Build all the nodes / netcore02 (pull_request) Successful in 33s
Build all the nodes / geo02 (pull_request) Successful in 1m41s
Build all the nodes / hypervisor01 (pull_request) Successful in 1m45s
Build all the nodes / geo01 (pull_request) Successful in 2m38s
Build the shell / build-shell (pull_request) Successful in 44s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m47s
Build all the nodes / bridge01 (pull_request) Successful in 2m52s
Run pre-commit on all files / pre-commit (pull_request) Successful in 52s
Build all the nodes / hypervisor02 (pull_request) Successful in 2m33s
Build all the nodes / rescue01 (pull_request) Successful in 1m47s
Build all the nodes / build01 (pull_request) Successful in 3m21s
Build all the nodes / tower01 (pull_request) Successful in 1m56s
Build all the nodes / compute01 (pull_request) Successful in 3m41s
Build all the nodes / web03 (pull_request) Successful in 1m54s
Build all the nodes / web02 (pull_request) Successful in 1m59s
Build all the nodes / storage01 (pull_request) Successful in 2m15s
Build all the nodes / vault01 (pull_request) Successful in 2m32s
Build all the nodes / web01 (pull_request) Successful in 2m35s
Check meta / check_dns (push) Successful in 15s
Check meta / check_meta (push) Successful in 15s
Build all the nodes / netcore02 (push) Successful in 21s
Build the shell / build-shell (push) Successful in 26s
Run pre-commit on all files / pre-commit (push) Successful in 55s
Build all the nodes / ap01 (push) Successful in 1m19s
Build all the nodes / hypervisor02 (push) Successful in 2m18s
Build all the nodes / hypervisor03 (push) Successful in 2m20s
Build all the nodes / bridge01 (push) Successful in 2m21s
Build all the nodes / rescue01 (push) Successful in 2m23s
Build all the nodes / tower01 (push) Successful in 2m47s
Build all the nodes / geo01 (push) Successful in 2m57s
Build all the nodes / compute01 (push) Successful in 3m12s
Build all the nodes / geo02 (push) Successful in 3m16s
Build all the nodes / hypervisor01 (push) Successful in 3m27s
Build all the nodes / build01 (push) Successful in 3m42s
Build all the nodes / web03 (push) Successful in 3m42s
Build all the nodes / storage01 (push) Successful in 3m58s
Build all the nodes / vault01 (push) Successful in 3m58s
Build all the nodes / web02 (push) Successful in 4m5s
Build all the nodes / web01 (push) Successful in 4m25s
41 lines
1,008 B
Nix
41 lines
1,008 B
Nix
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
# SPDX-FileContributor: Maurice Debray <maurice.debray@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
# 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.nixos-unstable { };
|
|
|
|
dns = import sources."dns.nix" { inherit pkgs; };
|
|
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 = pkgs.lib // {
|
|
extra = import ../lib/nix-lib;
|
|
};
|
|
}
|
|
)
|
|
);
|
|
}
|