2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-22 17:19:34 -07:00
|
|
|
let
|
|
|
|
cfg = config.programs.zellij.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.zellij.enable;
|
2024-05-21 17:23:55 -07:00
|
|
|
themeName = "catppuccin-${cfg.flavor}";
|
2024-04-22 17:19:34 -07:00
|
|
|
in
|
|
|
|
{
|
2024-06-28 09:29:30 -07:00
|
|
|
options.programs.zellij.catppuccin = lib.ctp.mkCatppuccinOpt { name = "zellij"; };
|
2024-04-22 17:19:34 -07:00
|
|
|
|
|
|
|
config = lib.mkIf enable {
|
2024-05-21 14:53:46 -07:00
|
|
|
programs.zellij.settings = {
|
|
|
|
theme = themeName;
|
|
|
|
};
|
2024-04-22 17:19:34 -07:00
|
|
|
};
|
|
|
|
}
|