rose-pine-nix/modules/home-manager/globals.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

27 lines
774 B
Nix

{ lib, defaultSources, ... }: {
options.catppuccin = {
enable = lib.mkEnableOption "Catppuccin globally";
flavour = lib.mkOption {
type = lib.ctp.types.flavourOption;
default = "mocha";
description = "Global Catppuccin flavour";
};
accent = lib.mkOption {
type = lib.ctp.types.accentOption;
default = "mauve";
description = "Global Catppuccin accent";
};
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;
description = "Port sources used across all options";
};
};
}