pkgs/nixfiles-docs-options: Generate docs for module options
This commit is contained in:
26
pkgs/nixfiles-docs-options/default.nix
Normal file
26
pkgs/nixfiles-docs-options/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
lib,
|
||||
writeText,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
evaluatedModules = lib.evalModules {
|
||||
modules = [
|
||||
../../modules
|
||||
../../profiles
|
||||
{
|
||||
_module.check = false;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
writeText "options.json" (
|
||||
builtins.toJSON (
|
||||
lib.filter (opt: !opt.internal && !(lib.head opt.loc == "_module")) (
|
||||
lib.optionAttrSetToDocList evaluatedModules.options
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -27,6 +27,7 @@ final: prev: {
|
||||
"http.server" = final.callPackage ./http.server {};
|
||||
nix-remove-result-links = final.callPackage ./nix-remove-result-links {};
|
||||
nixfiles-auto-install = final.callPackage ./nixfiles/nixfiles-auto-install.nix {};
|
||||
nixfiles-docs-options = final.callPackage ./nixfiles-docs-options {};
|
||||
nixfiles-generate-config = final.callPackage ./nixfiles/nixfiles-generate-config.nix {};
|
||||
nixfiles-generate-backup-secrets = final.callPackage ./nixfiles/nixfiles-generate-backup-secrets.nix {};
|
||||
nixfiles-update-ssh-host-keys = final.callPackage ./nixfiles/nixfiles-update-ssh-host-keys.nix {};
|
||||
|
||||
Reference in New Issue
Block a user