8179a45f64
* fix: set nixos release in mkOptionDoc * fix(modules): shorten defaultText for `catppuccin.sources`
29 lines
554 B
Nix
29 lines
554 B
Nix
{ lib
|
|
, nixosOptionsDoc
|
|
,
|
|
}: { version
|
|
, modules
|
|
,
|
|
}:
|
|
let
|
|
eval = lib.evalModules {
|
|
modules = modules ++ [{
|
|
options.system.nixos.release = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = lib.trivial.release;
|
|
readOnly = true;
|
|
};
|
|
|
|
config = {
|
|
_module.check = false;
|
|
};
|
|
}];
|
|
};
|
|
|
|
doc = nixosOptionsDoc {
|
|
options = lib.filterAttrs (n: lib.const (!(lib.elem n [ "_module" "system" ]))) eval.options;
|
|
documentType = "none";
|
|
revision = version;
|
|
};
|
|
in
|
|
doc.optionsCommonMark
|