aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/tmux.nix
diff options
context:
space:
mode:
authorSimen A. W. Olsen <cobraz@Simens-MacBook-Pro-4.local>2026-03-21 13:49:10 +0100
committerSimen A. W. Olsen <cobraz@Simens-MacBook-Pro-4.local>2026-03-21 13:49:10 +0100
commit1fd92fcaf3aadea1e9509f859340f57100218c41 (patch)
treedb88f38eef0b04000cfd7affbbd5ab9175027f08 /modules/home/tmux.nix
parent95083ca2ac000adeaaaa9a14c8e64b015979d0b1 (diff)
downloaddotfiles-1fd92fcaf3aadea1e9509f859340f57100218c41.tar.gz
dotfiles-1fd92fcaf3aadea1e9509f859340f57100218c41.zip
refactor: consolidate dotfiles into declarative Nix modules
- Remove nvim git submodule, use flake input instead - Inline all shell configurations into Nix modules - Remove legacy bootstrap.sh and macos/macos script - Add NixOS system configuration support - Update documentation with platform-specific setup - Add claude-code to macOS Homebrew - Remove stow-based dotfile management approach
Diffstat (limited to 'modules/home/tmux.nix')
-rw-r--r--modules/home/tmux.nix28
1 files changed, 27 insertions, 1 deletions
diff --git a/modules/home/tmux.nix b/modules/home/tmux.nix
index 473ce5e..fa01331 100644
--- a/modules/home/tmux.nix
+++ b/modules/home/tmux.nix
@@ -1,5 +1,31 @@
{ ... }:
{
- home.file.".tmux.conf".source = ../../tmux/.tmux.conf;
+ home.file.".tmux.conf".text = ''
+ unbind r
+ bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
+
+ set -g default-terminal "tmux-256color"
+ set -ag terminal-overrides ",xterm-256color:RGB"
+
+ set -g prefix C-s
+
+ set -g mouse on
+
+ set -g base-index 1
+ set-window-option -g mode-keys vi
+
+ bind g new-window -c "#{pane_current_path}" -n "lazygit" lazygit
+
+ bind f run-shell "tmux neww twm"
+ bind F run-shell "tmux neww twm -l"
+ bind s run-shell "tmux neww twm -e" # i rebind the original `s` to `S` so I can still use it
+ bind e run-shell "tmux switch -t $TWM_DEFAULT" # i set TWM_DEFAULT in my shellrc, just a session that is always available as a scratch area
+
+ set -g @plugin 'tmux-plugins/tpm'
+ set -g @plugin 'christoomey/vim-tmux-navigator'
+ set -g @plugin 'tmux-plugins/tmux-sensible'
+
+ run '~/.tmux/plugins/tpm/tpm'
+ '';
}