rose-pine-nix/modules/home-manager/zellij.nix
Fedi Jamoussi a5d452a200
feat(home-manager): add support for zellij (#139)
Signed-off-by: eljamm <fedi.jamoussi@protonmail.ch>
Co-authored-by: seth <getchoo@tuta.io>
2024-04-22 20:19:34 -04:00

17 lines
344 B
Nix

{ 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; };
};
}