diffu/modules/home-manager/zellij.nix

34 lines
618 B
Nix
Raw Normal View History

2023-12-17 05:59:09 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.custom-hm.zellij;
in
{
options.custom-hm.zellij = {
2023-12-17 05:59:09 +00:00
enable = mkEnableOption "zellij configurations";
};
config = {
programs.zellij = mkIf cfg.enable {
enable = true;
settings = {
default_shell = "fish";
keybinds = {
unbind = [
"Ctrl p"
"Ctrl n"
];
shared_except = {
_args = [ "pane" "locked" ];
bind = {
_args = [ "Ctrl b"];
SwitchToMode = "Pane";
};
};
2023-12-17 05:59:09 +00:00
};
};
};
};
}