Skip to content

Commit

Permalink
feat(home-manager): add support for zellij (#139)
Browse files Browse the repository at this point in the history
Signed-off-by: eljamm <[email protected]>
Co-authored-by: seth <[email protected]>
  • Loading branch information
eljamm and getchoo authored Apr 23, 2024
1 parent d146dd5 commit a5d452a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions modules/home-manager/zellij.nix
Original file line number Diff line number Diff line change
@@ -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; };
};
}
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ in
tmux = enable;
yazi = enable;
zathura = enable;
zellij = enable;
};

gtk = lib.recursiveUpdate enable { catppuccin.cursor.enable = true; };
Expand Down

0 comments on commit a5d452a

Please sign in to comment.