diff --git a/modules/home-manager/zellij.nix b/modules/home-manager/zellij.nix new file mode 100644 index 0000000..092ad0c --- /dev/null +++ b/modules/home-manager/zellij.nix @@ -0,0 +1,17 @@ +{ config +, lib +, ... +}: +let + cfg = config.programs.zellij.catppuccin; + enable = cfg.enable && config.programs.zellij.enable; + themeName = "catppuccin-${cfg.flavour}"; +in +{ + options.programs.zellij.catppuccin = + lib.ctp.mkCatppuccinOpt "zellij"; + + config = lib.mkIf enable { + programs.zellij.settings = { theme = themeName; }; + }; +} diff --git a/test.nix b/test.nix index 7d93b52..66eaeca 100644 --- a/test.nix +++ b/test.nix @@ -85,6 +85,7 @@ in tmux = enable; yazi = enable; zathura = enable; + zellij = enable; }; gtk = lib.recursiveUpdate enable { catppuccin.cursor.enable = true; };