34 lines
697 B
Nix
34 lines
697 B
Nix
|
{ 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;
|
||
|
};
|
||
|
|
||
|
config = {
|
||
|
_module.check = false;
|
||
|
};
|
||
|
}];
|
||
|
}
|
||
|
).options [ "_module" "system" ];
|
||
|
|
||
|
transformOptions = opt: builtins.removeAttrs opt [ "declarations" ];
|
||
|
|
||
|
documentType = "none";
|
||
|
revision = version;
|
||
|
}
|
||
|
).optionsCommonMark
|