From 9d43b837ff0be4020dad742efb77f047fa79539c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 18 Jun 2025 09:01:51 +0200 Subject: [PATCH] feat(shell): add tmux --- neovim/default.nix | 3 +++ shell/default.nix | 4 ++-- shell/tmux.nix | 28 ++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 shell/tmux.nix diff --git a/neovim/default.nix b/neovim/default.nix index 43a51e0..ec0b648 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -90,6 +90,9 @@ # firenvim firenvim + + # tmux + vim-tmux-navigator ]; withNodeJs = true; diff --git a/shell/default.nix b/shell/default.nix index 28ebeb5..0aeb151 100644 --- a/shell/default.nix +++ b/shell/default.nix @@ -1,5 +1,4 @@ -{ pkgs, ... }: -{ +{pkgs, ...}: { home.packages = with pkgs; [ devenv difftastic @@ -25,6 +24,7 @@ ./rsync.nix ./shell_aliases.nix ./starship.nix + ./tmux.nix ./tree.nix ./zoxide.nix ./zsh.nix diff --git a/shell/tmux.nix b/shell/tmux.nix new file mode 100644 index 0000000..3938742 --- /dev/null +++ b/shell/tmux.nix @@ -0,0 +1,28 @@ +{pkgs, ...}: { + programs = { + tmux = { + enable = true; + clock24 = true; + keyMode = "vi"; + escapeTime = 0; + plugins = with pkgs.tmuxPlugins; [ + tmux-colors-solarized + vim-tmux-navigator + { + plugin = power-theme; + extraConfig = '' + set -g @tmux_power_theme "colour4" + ''; + } + ]; + terminal = "xterm-256color"; + extraConfig = '' + # Terminal overrides + set-option -sa terminal-overrides ",xterm-256color:Tc" + + # Reload tmux config to ensure theme is applied + bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!" + ''; + }; + }; +}