2024-04-22 17:19:34 -07:00
|
|
|
{
|
2024-10-20 15:26:56 -07:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.rose-pine) sources;
|
|
|
|
|
|
|
|
cfg = config.programs.zellij.rose-pine;
|
|
|
|
enable = cfg.enable && config.programs.zellij.enable;
|
|
|
|
|
|
|
|
themeName =
|
|
|
|
if (cfg.flavor == "main")
|
|
|
|
then "rose-pine"
|
|
|
|
else "rose-pine-${cfg.flavor}";
|
|
|
|
theme = sources.zellij + "/dist/${themeName}.kdl";
|
|
|
|
in {
|
|
|
|
options.programs.zellij.rose-pine = lib.rp.mkRosePineOpt {name = "zellij";};
|
2024-04-22 17:19:34 -07:00
|
|
|
|
|
|
|
config = lib.mkIf enable {
|
2024-10-20 15:26:56 -07:00
|
|
|
xdg.configFile."zellij/themes/${themeName}.kdl".source = theme;
|
|
|
|
|
2024-05-21 14:53:46 -07:00
|
|
|
programs.zellij.settings = {
|
|
|
|
theme = themeName;
|
|
|
|
};
|
2024-04-22 17:19:34 -07:00
|
|
|
};
|
|
|
|
}
|