tmux.nix (354B)
1 { config, lib, pkgs, ... }: 2 let 3 inherit (lib) mkEnableOption mkIf; 4 cfg = config.modules.shell.tmux; 5 in 6 { 7 options.modules.shell.tmux = { 8 enable = mkEnableOption "enable tmux"; 9 }; 10 config = mkIf cfg.enable { 11 programs.tmux = { 12 enable = true; 13 clock24 = true; 14 escapeTime = 0; 15 terminal = "tmux-256color"; 16 }; 17 }; 18 }