nix-dotfiles/modules/hm/zellij.nix

38 lines
1 KiB
Nix

{ pkgs, ... }:
let
strPalette = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.colorPalette;
in
{
programs.zellij = {
enable = true;
package = pkgs.unstable_pkgs.zellij;
};
home.shellAliases = {
"ze" = "zellij";
"zec" = "zellij -l compact";
};
xdg.configFile."zellij/config.kdl".text = ''
theme "nix-rice"
pane_frames false
'';
xdg.configFile."zellij/themes/nix-rice.kdl".text = ''
themes {
nix-rice {
bg "${strPalette.primary.dim_foreground}" // Foreground darker
fg "${strPalette.primary.bright_foreground}" // Selection
red "${strPalette.normal.red}"
black "${strPalette.primary.background}" // Background
green "${strPalette.normal.green}"
yellow "${strPalette.normal.yellow}"
blue "${strPalette.normal.blue}"
magenta "${strPalette.normal.magenta}"
cyan "${strPalette.normal.cyan}"
white "${strPalette.primary.foreground}" // Foreground
orange "${strPalette.bright.red}"
}
}
'';
}