dotfiles/user-modules/theming/themes/catppuccin.nix

34 lines
609 B
Nix
Raw Normal View History

2024-07-19 12:00:55 +00:00
{
config,
lib,
pkgs,
...
}:
2024-07-18 04:08:27 +00:00
with lib;
let
cfg = config.theming.themes.catppuccin;
2024-07-19 12:00:55 +00:00
in
{
2024-07-18 04:08:27 +00:00
options = {
theming.themes.catppuccin = {
enable = mkEnableOption "catppuccin";
flavor = mkOption {
2024-07-19 12:00:55 +00:00
type = types.enum [
"latte"
"frappe"
"macchiato"
"mocha"
];
2024-07-18 04:08:27 +00:00
default = "mocha";
description = "The flavor of catppuccin theme.";
};
};
};
config.theming = mkIf cfg.enable {
darkMode = (cfg.flavor != "latte");
colorScheme = "${pkgs.base16-schemes}/share/themes/catppuccin-${cfg.flavor}.yaml";
};
}