rose-pine-nix/dev/option-doc.nix
seth 8179a45f64
fix(modules): shorten defaultText for catppuccin.sources (#185)
* fix: set nixos release in mkOptionDoc

* fix(modules): shorten defaultText for `catppuccin.sources`
2024-05-21 03:27:57 -04:00

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