nixos-config/home/tmux.nix

34 lines
719 B
Nix
Raw Normal View History

2021-04-19 18:59:24 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.tmux;
in
{
options.my.home.tmux = with lib; {
2021-07-29 12:19:31 +02:00
enable = (mkEnableOption "tmux dotfiles") // { default = true; };
2021-04-19 18:59:24 +02:00
};
2021-06-21 17:47:58 +02:00
config = lib.mkIf cfg.enable {
programs.tmux = {
enable = true;
baseIndex = 1;
terminal = "screen-256color";
clock24 = true;
2021-06-21 17:30:42 +02:00
2021-06-21 17:47:58 +02:00
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'
'';
}
];
};
2021-04-19 18:59:24 +02:00
};
}