34 lines
633 B
Nix
Raw Normal View History

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