28 lines
771 B
Nix
28 lines
771 B
Nix
{ lib, defaultSources, ... }:
|
|
{
|
|
options.catppuccin = {
|
|
enable = lib.mkEnableOption "Catppuccin globally";
|
|
|
|
flavor = lib.mkOption {
|
|
type = lib.ctp.types.flavorOption;
|
|
default = "mocha";
|
|
description = "Global Catppuccin flavor";
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
}
|