2024-05-21 14:53:46 -07:00
|
|
|
{ lib, defaultSources, ... }:
|
|
|
|
{
|
2023-11-03 15:13:02 -07:00
|
|
|
options.catppuccin = {
|
2024-04-22 10:39:12 -07:00
|
|
|
enable = lib.mkEnableOption "Catppuccin globally";
|
|
|
|
|
2024-05-21 17:23:55 -07:00
|
|
|
flavor = lib.mkOption {
|
|
|
|
type = lib.ctp.types.flavorOption;
|
2024-04-29 11:22:05 -07:00
|
|
|
default = "mocha";
|
2024-05-21 17:23:55 -07:00
|
|
|
description = "Global Catppuccin flavor";
|
2023-11-03 15:13:02 -07:00
|
|
|
};
|
2024-05-08 16:27:03 -07:00
|
|
|
|
|
|
|
accent = lib.mkOption {
|
|
|
|
type = lib.ctp.types.accentOption;
|
|
|
|
default = "mauve";
|
|
|
|
description = "Global Catppuccin accent";
|
|
|
|
};
|
2024-05-13 13:33:16 -07:00
|
|
|
|
|
|
|
sources = lib.mkOption {
|
|
|
|
type = lib.types.lazyAttrsOf lib.types.raw;
|
|
|
|
default = defaultSources;
|
2024-05-21 00:27:57 -07:00
|
|
|
defaultText = "{ ... }";
|
2024-05-13 13:33:16 -07:00
|
|
|
# HACK!
|
|
|
|
# without this, overriding one source will delete all others. -@getchoo
|
|
|
|
apply = lib.recursiveUpdate defaultSources;
|
|
|
|
description = "Port sources used across all options";
|
|
|
|
};
|
2023-11-03 15:13:02 -07:00
|
|
|
};
|
|
|
|
}
|