From a5d452a200dbc9844a0305237d1b799ee08be024 Mon Sep 17 00:00:00 2001 From: Fedi Jamoussi Date: Tue, 23 Apr 2024 00:19:34 +0000 Subject: [PATCH] feat(home-manager): add support for zellij (#139) Signed-off-by: eljamm Co-authored-by: seth --- modules/home-manager/zellij.nix | 17 +++++++++++++++++ test.nix | 1 + 2 files changed, 18 insertions(+) create mode 100644 modules/home-manager/zellij.nix 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; };