diff --git a/home/tmux.nix b/home/tmux.nix index eeb81d0..20da71a 100644 --- a/home/tmux.nix +++ b/home/tmux.nix @@ -7,20 +7,27 @@ in enable = mkEnableOption "tmux dotfiles"; }; - config.programs.tmux = lib.mkIf cfg.enable { - enable = true; - baseIndex = 1; - terminal = "screen-256color"; - clock24 = true; + config = lib.mkIf cfg.enable { + programs.tmux = { + enable = true; + baseIndex = 1; + terminal = "screen-256color"; + clock24 = true; - plugins = with pkgs; [ - tmuxPlugins.cpu - { - plugin = tmuxPlugins.tmux-colors-solarized; - extraConfig = '' - set -g @colors-solarized 'light' - ''; - } - ]; + plugins = with pkgs; [ + { + plugin = tmuxPlugins.cpu; + extraConfig = '' + set -g status-right 'CPU: #{cpu_percentage} | %a %d-%h %H:%M ' + ''; + } + { + plugin = tmuxPlugins.tmux-colors-solarized; + extraConfig = '' + set -g @colors-solarized 'light' + ''; + } + ]; + }; }; }