nichts/modules/cli/zellij/default.nix

47 lines
967 B
Nix
Raw Normal View History

2024-07-31 02:09:58 +02:00
{
config,
lib,
...
}: let
inherit (config.modules.other.system) username;
cfg = config.modules.system.programs.zellij;
inherit (lib) mkIf;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.zellij = {
enable = true;
enableFishIntegration = true;
settings = {
on_force_close = "quit";
pane_frames = false;
default_layout = "compact";
ui = {
pane_frames = {
hide_session_name = true;
rounded_corners = true;
};
};
plugins = {
tab-bar.path = "tab-bar";
status-bar.path = "status-bar";
strider.path = "strider";
compact-bar.path = "compact-bar";
};
keybinds = {
unbind = "Ctrl n";
# resize = {
# bind = "Ctrl n";
# };
};
};
};
};
};
}