Checks: add nixos documentation-check
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
./flash/flake-module.nix
|
||||
./impure/flake-module.nix
|
||||
./installation/flake-module.nix
|
||||
./nixos-documentation/flake-module.nix
|
||||
];
|
||||
perSystem =
|
||||
{
|
||||
|
||||
24
checks/nixos-documentation/flake-module.nix
Normal file
24
checks/nixos-documentation/flake-module.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user