1
Fork 0
satellite/home/features/cli/tmux/default.nix

43 lines
1,007 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
2023-03-12 05:24:25 +01:00
let base16-tmux = config.lib.stylix.colors {
templateRepo = pkgs.fetchFromGitHub {
owner = "tinted-theming";
repo = "base16-tmux";
sha256 = "1p6czpd9f0sbibdsph1hdw4ljp6zzjij2159bks16wbfbg3p1hhx";
rev = "3312bb2cbb26db7eeb2d2235ae17d4ffaef5e59b";
};
};
2023-01-10 02:38:06 +01:00
in
{
programs.tmux = {
enable = true;
clock24 = true; # 24h clock format
historyLimit = 10000; # increase amount of saved lines
plugins = with pkgs.tmuxPlugins; [
sessionist # Nicer workflow for switching around between sessions
resurrect # Save / restore tmux sessions
{
plugin = continuum; # Automatically restore tmux sessions
extraConfig = ''
set -g @continuum-restore 'on'
set -g @continuum-boot 'on'
'';
}
];
extraConfig = ''
2023-01-10 02:58:59 +01:00
# Main config
2023-01-10 02:38:06 +01:00
source ${./tmux.conf}
# Theme
2023-03-12 05:24:25 +01:00
source ${base16-tmux}
2023-01-10 02:38:06 +01:00
'';
};
2023-11-04 20:18:14 +01:00
satellite.persistence.at.state.apps.tmux.directories = [
".tmux"
];
2023-01-10 02:38:06 +01:00
}