added documentation for the modules

This commit is contained in:
2025-10-15 12:37:27 +02:00
parent 570bec37ed
commit 82206e38ba
7 changed files with 533 additions and 90 deletions

27
docs.nix Normal file
View File

@@ -0,0 +1,27 @@
{
buildDocs =
{
pkgs,
inputs,
modules,
}:
let
eval = pkgs.lib.evalModules {
specialArgs = {
inherit inputs pkgs;
};
modules = [
(
{ ... }:
{
imports = modules;
_module.check = false;
}
)
];
};
in
pkgs.nixosOptionsDoc {
inherit (eval) options;
};
}