fix(modules): shorten defaultText for catppuccin.sources
(#185)
* fix: set nixos release in mkOptionDoc * fix(modules): shorten defaultText for `catppuccin.sources`
This commit is contained in:
parent
aef5672912
commit
8179a45f64
3 changed files with 14 additions and 2 deletions
|
@ -7,11 +7,21 @@
|
|||
}:
|
||||
let
|
||||
eval = lib.evalModules {
|
||||
modules = modules ++ [{ _module.check = false; }];
|
||||
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: _: n != "_module") eval.options;
|
||||
options = lib.filterAttrs (n: lib.const (!(lib.elem n [ "_module" "system" ]))) eval.options;
|
||||
documentType = "none";
|
||||
revision = version;
|
||||
};
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
sources = lib.mkOption {
|
||||
type = lib.types.lazyAttrsOf lib.types.raw;
|
||||
default = defaultSources;
|
||||
defaultText = "{ ... }";
|
||||
# HACK!
|
||||
# without this, overriding one source will delete all others. -@getchoo
|
||||
apply = lib.recursiveUpdate defaultSources;
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
sources = lib.mkOption {
|
||||
type = lib.types.lazyAttrsOf lib.types.raw;
|
||||
default = defaultSources;
|
||||
defaultText = "{ ... }";
|
||||
# HACK!
|
||||
# without this, overriding one source will delete all others. -@getchoo
|
||||
apply = lib.recursiveUpdate defaultSources;
|
||||
|
|
Loading…
Reference in a new issue