Skip to content

Commit

Permalink
fix(modules): shorten defaultText for catppuccin.sources (#185)
Browse files Browse the repository at this point in the history
* fix: set nixos release in mkOptionDoc

* fix(modules): shorten defaultText for `catppuccin.sources`
  • Loading branch information
getchoo authored May 21, 2024
1 parent aef5672 commit 8179a45
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions dev/option-doc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
1 change: 1 addition & 0 deletions modules/home-manager/globals.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions modules/nixos/globals.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8179a45

Please sign in to comment.