rose-pine-nix/docs/options-doc.nix

31 lines
666 B
Nix
Raw Normal View History

2024-05-21 14:53:46 -07:00
{ lib, nixosOptionsDoc }:
{ version, modules }:
(nixosOptionsDoc {
options =
builtins.removeAttrs
(lib.evalModules {
modules = modules ++ [
{
options.system.nixos.release = lib.mkOption {
type = lib.types.str;
default = lib.trivial.release;
readOnly = true;
};
2024-05-21 14:53:46 -07:00
config = {
_module.check = false;
};
}
2024-05-21 14:53:46 -07:00
];
}).options
[
"_module"
"system"
];
2024-05-21 14:53:46 -07:00
transformOptions = opt: builtins.removeAttrs opt [ "declarations" ];
2024-05-21 14:53:46 -07:00
documentType = "none";
revision = version;
}).optionsCommonMark