2024-04-29 13:21:14 -07:00
|
|
|
{ lib
|
|
|
|
, nixosOptionsDoc
|
|
|
|
,
|
|
|
|
}: { version
|
|
|
|
, modules
|
|
|
|
,
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
eval = lib.evalModules {
|
2024-05-21 00:27:57 -07:00
|
|
|
modules = modules ++ [{
|
|
|
|
options.system.nixos.release = lib.mkOption {
|
|
|
|
type = lib.types.str;
|
|
|
|
default = lib.trivial.release;
|
|
|
|
readOnly = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
_module.check = false;
|
|
|
|
};
|
|
|
|
}];
|
2024-04-29 13:21:14 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
doc = nixosOptionsDoc {
|
2024-05-21 00:27:57 -07:00
|
|
|
options = lib.filterAttrs (n: lib.const (!(lib.elem n [ "_module" "system" ]))) eval.options;
|
2024-04-29 13:21:14 -07:00
|
|
|
documentType = "none";
|
|
|
|
revision = version;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
doc.optionsCommonMark
|