tmux: nixify

This commit is contained in:
js0ny 2025-11-21 22:57:52 +00:00
parent a2a1d02c4e
commit db78fc2289
3 changed files with 66 additions and 3 deletions

View file

@ -0,0 +1,56 @@
{pkgs, ...}: {
programs.tmux = {
enable = true;
prefix = "C-q";
shortcut = "q";
keyMode = "vi";
historyLimit = 10000;
mouse = true;
baseIndex = 1;
resizeAmount = 5;
terminal = "tmux-256color";
tmuxp.enable = true;
plugins = with pkgs.tmuxPlugins; [
pain-control
yank
extrakto
tmux-which-key
{
plugin = resurrect;
extraConfig = ''
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
'';
}
{
plugin = continuum;
extraConfig = ''
set -g @continuum-restore 'on'
set -g @continuum-save-interval '15'
'';
}
];
extraConfig = ''
### General Options
### -----------------------------------------------
set-option -g default-terminal "tmux-256color"
set-option -g allow-rename on
set-option -g alternate-screen on
set-option -g visual-activity on
# set-option -g pane-border-style fg=colour244
### Windows Management
### -----------------------------------------------
bind c new-window
unbind '"'
unbind %
bind ` resize-pane -Z
# use pain-control map
# bind C-h select-window -t :-
# bind C-l select-window -t :+
'';
};
}

View file

@ -23,7 +23,7 @@
# Personal Program
./programs/chromium.nix
./programs/firefox
./programs/emacs.nix
# ./programs/emacs.nix
./programs/vscode.nix
./programs/xilinx.nix
./programs/mime.nix
@ -50,6 +50,8 @@
./programs/obs-studio.nix
./programs/ghostty.nix
./programs/obsidian
./programs/aichat.nix
./programs/tmux.nix
# Desktop Linux
./programs/desktop/plasma
@ -79,5 +81,10 @@
keyboardBacklightStep = "1";
};
xdg.configFile."libvirt/libvirt.conf" = {
text = ''uri_default = "qemu:///system"'';
enable = true;
};
home.stateVersion = "25.05";
}