2024-05-21 21:53:46 +00:00
|
|
|
{ config, lib, ... }:
|
2024-04-11 04:35:22 +00:00
|
|
|
let
|
2024-05-13 20:33:16 +00:00
|
|
|
inherit (config.catppuccin) sources;
|
|
|
|
|
2024-04-11 04:35:22 +00:00
|
|
|
cfg = config.programs.rofi.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.rofi.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-28 16:29:30 +00:00
|
|
|
options.programs.rofi.catppuccin = lib.ctp.mkCatppuccinOpt { name = "rofi"; };
|
2024-04-11 04:35:22 +00:00
|
|
|
|
|
|
|
config.programs.rofi = lib.mkIf enable {
|
2024-04-18 16:47:33 +00:00
|
|
|
theme = {
|
|
|
|
"@theme" = builtins.path {
|
2024-05-22 00:23:55 +00:00
|
|
|
name = "catppuccin-${cfg.flavor}.rasi";
|
|
|
|
path = "${sources.rofi}/basic/.local/share/rofi/themes/catppuccin-${cfg.flavor}.rasi";
|
2024-04-18 16:47:33 +00:00
|
|
|
};
|
2024-04-11 04:35:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|