checks: add check for rendering docs

This commit is contained in:
DavHau
2024-03-25 14:44:39 +07:00
parent 4ddac7d5ad
commit 90a504936c
4 changed files with 14 additions and 1 deletions

View File

@@ -16,6 +16,15 @@
{
checks =
let
# ensure all options can be rendered after importing clan into nixos
renderClanOptions =
let
docs = pkgs.nixosOptionsDoc {
options = (pkgs.nixos { imports = [ self.nixosModules.clanCore ]; }).options;
warningsAreErrors = false;
};
in
docs.optionsJSON;
nixosTestArgs = {
# reference to nixpkgs for the current system
inherit pkgs;
@@ -45,7 +54,7 @@
self'.legacyPackages.homeConfigurations or { }
);
in
nixosTests // schemaTests // flakeOutputs;
{ inherit renderClanOptions; } // nixosTests // schemaTests // flakeOutputs;
legacyPackages = {
nixosTests =
let