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:
seth 2024-05-21 01:27:57 -06:00 committed by GitHub
parent aef5672912
commit 8179a45f64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 2 deletions

View file

@ -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;
};

View file

@ -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;

View file

@ -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;