feat(home-manager): add support for zellij (#139)
Signed-off-by: eljamm <fedi.jamoussi@protonmail.ch> Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
d146dd5a9e
commit
a5d452a200
2 changed files with 18 additions and 0 deletions
17
modules/home-manager/zellij.nix
Normal file
17
modules/home-manager/zellij.nix
Normal file
|
@ -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
test.nix
1
test.nix
|
@ -85,6 +85,7 @@ in
|
||||||
tmux = enable;
|
tmux = enable;
|
||||||
yazi = enable;
|
yazi = enable;
|
||||||
zathura = enable;
|
zathura = enable;
|
||||||
|
zellij = enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk = lib.recursiveUpdate enable { catppuccin.cursor.enable = true; };
|
gtk = lib.recursiveUpdate enable { catppuccin.cursor.enable = true; };
|
||||||
|
|
Loading…
Reference in a new issue