feat(devkit): use tmux since zellij is currently broken

This commit is contained in:
Guz
2025-02-18 18:46:59 -03:00
parent 7b5a017e2b
commit 62eb5cfbf8
5 changed files with 249 additions and 8 deletions

View File

@@ -32,6 +32,10 @@ in {
type = with types; bool;
default = cfg.enable;
};
tmux.enable = mkOption {
type = with types; bool;
default = cfg.enable;
};
yazi.enable = mkOption {
type = with types; bool;
default = cfg.enable;
@@ -132,17 +136,59 @@ in {
};
## Zellij (Terminal multiplexer)
programs.zellij = lib.mkIf cfg.zellij.enable {
#
# CURRENTLY BORKED https://github.com/zellij-org/zellij/issues/3970
#
# programs.zellij = lib.mkIf cfg.zellij.enable {
# enable = true;
# package = devkitPkgs.zellij;
# # package = pkgs.zellij;
# };
## Tmux (Backup terminal multiplexer)
programs.tmux = lib.mkIf cfg.tmux.enable {
enable = true;
package = devkitPkgs.zellij;
# package = pkgs.zellij;
package = devkitPkgs.tmux;
# baseIndex = 1;
# keyMode = "vi";
# mouse = true;
# prefix = "Ctrl-G";
# shell = lib.getExe config.programs.zsh.package;
# terminal = "screen-256color";
# plugins = with pkgs; [
# {
# plugin = tmuxPlugins.catppuccin.overrideAttrs (_: {
# src = fetchFromGitHub {
# owner = "guz013";
# repo = "frappuccino-tmux";
# rev = "4255b0a769cc6f35e12595fe5a33273a247630aa";
# sha256 = "0k8yprhx5cd8v1ddpcr0dkssspc17lq2a51qniwafkkzxi3kz3i5";
# };
# });
# }
# {plugin = tmuxPlugins.better-mouse-mode;}
# {
# plugin = tmuxPlugins.mkTmuxPlugin {
# pluginName = "tmux.nvim";
# version = "unstable-2024-04-05";
# src = fetchFromGitHub {
# owner = "aserowy";
# repo = "tmux.nvim";
# rev = "63e9c5e054099dd30af306bd8ceaa2f1086e1b07";
# sha256 = "0ynzljwq6hv7415p7pr0aqx8kycp84p3p3dy4jcx61dxfgdpgc4c";
# };
# };
# }
# {plugin = tmuxPlugins.resurrect;}
# {plugin = tmuxPlugins.continuum;}
# ];
};
## ZSH (Default shell)
programs.zsh = lib.mkIf cfg.zsh.enable {
enable = true;
# package = devkitPkgs.zsh;
package = pkgs.zsh;
package = devkitPkgs.zsh;
# package = pkgs.zsh;
};
};
}