feat(infra): Add checks for meta

This commit is contained in:
Tom Hubrecht 2024-03-29 14:37:21 +01:00
parent fdd4f4b443
commit e9c6f0a2b6
3 changed files with 50 additions and 1 deletions

View file

@ -0,0 +1,22 @@
name: Check meta
on:
push:
paths:
- 'meta/*'
jobs:
check_meta:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Check the validity of meta options
run: nix-build meta/verify.nix -A meta
check_dns:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Check the validity of the DNS configuration
run: nix-build meta/verify.nix -A dns --no-out-link

View file

@ -3,6 +3,20 @@
let
sources = import ../npins;
pkgs = import sources.nixpkgs { };
dns = import sources."dns.nix";
lib = import sources.nix-lib {
inherit (pkgs) lib;
keysRoot = ../keys;
};
in
builtins.deepSeq ((import ./.) pkgs.lib) { }
{
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; })
);
}

View file

@ -52,6 +52,19 @@
"url": "https://api.github.com/repos/nix-community/disko/tarball/v1.4.1",
"hash": "1hm5fxpbbmzgl3qfl6gfc7ikas4piaixnav27qi719l73fnqbr8x"
},
"dns.nix": {
"type": "GitRelease",
"repository": {
"type": "Git",
"url": "https://git.hubrecht.ovh/hubrecht/dns.nix"
},
"pre_releases": false,
"version_upper_bound": null,
"version": "v1.2.1",
"revision": "66979725afe2164491be38ffff78460cc9b0ffd7",
"url": null,
"hash": "1bashjbh71dqs32yld7ihw2vz0vrad73pc35crf3qck8ssgpzv7d"
},
"liminix": {
"type": "Git",
"repository": {