feat: tmux

This commit is contained in:
s-prechtl 2024-09-22 01:29:20 +02:00
parent fe2fa1a7e1
commit 4c7129247e
2 changed files with 29 additions and 0 deletions

View file

@ -13,6 +13,7 @@
../../modules/home-manager/alacritty.nix
../../modules/home-manager/nextcloud.nix
../../modules/home-manager/zsh.nix
../../modules/home-manager/tmux.nix
];
home.username = "sprechtl";
home.homeDirectory = "/home/sprechtl";

View file

@ -0,0 +1,28 @@
{
pkgs, ...
}: {
programs.tmux = {
enable = true;
baseIndex = 1;
disableConfirmationPrompt = true;
newSession = true;
mouse = true;
secureSocket = true;
shell = "${pkgs.zsh}/bin/zsh";
shortcut = "a";
terminal = "screen-256color";
plugins = with pkgs.tmuxPlugins; [
gruvbox
sensible
vim-tmux-navigator
{
plugin = resurrect;
extraConfig = "set -g @ressurect-strategy-nvim 'session'";
}
];
extraConfig = ''
set -as terminal-features ",xterm-256color:RGB"
'';
};
}