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