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