2024-10-20 12:19:42 -07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.rose-pine) sources;
|
2024-05-13 13:33:16 -07:00
|
|
|
|
2024-10-20 12:19:42 -07:00
|
|
|
cfg = config.programs.rofi.rose-pine;
|
2024-04-10 21:35:22 -07:00
|
|
|
enable = cfg.enable && config.programs.rofi.enable;
|
2024-10-20 12:19:42 -07:00
|
|
|
|
|
|
|
themeName =
|
|
|
|
if (cfg.flavor == "main")
|
|
|
|
then "rose-pine"
|
|
|
|
else "rose-pine-${cfg.flavor}";
|
|
|
|
in {
|
|
|
|
options.programs.rofi.rose-pine = lib.rp.mkRosePineOpt {name = "rofi";};
|
2024-04-10 21:35:22 -07:00
|
|
|
|
|
|
|
config.programs.rofi = lib.mkIf enable {
|
2024-04-18 09:47:33 -07:00
|
|
|
theme = {
|
|
|
|
"@theme" = builtins.path {
|
2024-10-20 12:19:42 -07:00
|
|
|
name = "${themeName}.rasi";
|
|
|
|
path = "${sources.rofi}/${themeName}.rasi";
|
2024-04-18 09:47:33 -07:00
|
|
|
};
|
2024-04-10 21:35:22 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|