{ config, lib, pkgs, ... }: let cfg = config.my.home.tmux; in { options.my.home.tmux = with lib; { enable = mkEnableOption "tmux terminal multiplexer"; }; config.programs.tmux = lib.mkIf cfg.enable { enable = true; terminal = "xterm-256color"; escapeTime = 0; aggressiveResize = true; baseIndex = 1; shortcut = "z"; clock24 = true; historyLimit = 50000; # Bigger buffer extraConfig = '' setw -g mouse on set-option -g renumber-windows on ''; }; }