Checks: add nixos documentation-check

This commit is contained in:
Johannes Kirschbauer
2024-08-28 10:54:41 +02:00
parent 38991c9bf6
commit 0f823c3eac
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{ self, ... }:
let
documentationModule = {
# This is how some downstream users currently generate documentation
# If this breaks notify them via matrix since we spent ~5 hrs for bughunting last time.
documentation.nixos.enable = true;
documentation.nixos.extraModules = [
self.nixosModules.clanCore
{ clan.core.clanDir = ./.; }
];
};
in
{
clan = {
machines.test-documentation = {
# Dummy file system
fileSystems."/".device = "/dev/null";
boot.loader.grub.device = "/dev/null";
imports = [
documentationModule
];
};
};
}