From 4c7129247e29ae2a4807e3bcaa4deea7da63b0ba Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Sun, 22 Sep 2024 01:29:20 +0200 Subject: [PATCH] feat: tmux --- hosts/default/home.nix | 1 + modules/home-manager/tmux.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 modules/home-manager/tmux.nix diff --git a/hosts/default/home.nix b/hosts/default/home.nix index e9dcdcf..103e9e9 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -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"; diff --git a/modules/home-manager/tmux.nix b/modules/home-manager/tmux.nix new file mode 100644 index 0000000..e2179e7 --- /dev/null +++ b/modules/home-manager/tmux.nix @@ -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" + ''; + + }; +}