1
Fork 0
satellite/modules/applications/tmux.nix

70 lines
1.9 KiB
Nix
Raw Normal View History

2022-03-10 20:59:18 +01:00
{ pkgs, lib, ... }:
let
theme = pkgs.myThemes.current;
2022-05-11 23:11:54 +02:00
fastcopy = pkgs.tmuxPlugins.mkTmuxPlugin
{
pluginName = "fastcopy";
version = "unstable-2022-11-16";
2022-05-11 23:11:54 +02:00
src = pkgs.fetchFromGitHub
{
owner = "abhinav";
repo = "tmux-fastcopy";
sha256 = "1ald4ycgwj1fhk82yvsy951kgnn5im53fhsscz20hvjsqql7j4j3";
rev = "41f4c1c9fae7eb05c85ee2e248719f004dcfc90e";
2022-05-11 23:11:54 +02:00
};
};
cowboy = pkgs.tmuxPlugins.mkTmuxPlugin
{
pluginName = "cowboy";
version = "unstable-2021-05-11";
src = pkgs.fetchFromGitHub
{
owner = "tmux-plugins";
repo = "tmux-cowboy";
sha256 = "16wqwfaqy7nhiy1ijkng1x4baqq7s9if0m3ffcrnakza69s6r4r8";
rev = "75702b6d0a866769dd14f3896e9d19f7e0acd4f2";
};
};
muxile = pkgs.callPackage ./tmux/muxile.nix { };
2022-03-10 20:59:18 +01:00
in
{
2022-03-08 11:12:09 +01:00
home-manager.users.adrielus.programs = {
tmux = {
enable = true;
clock24 = true; # 24h clock format
2022-07-27 10:00:25 +02:00
# terminal = "screen-256color"; # more colors
2022-03-08 11:12:09 +01:00
historyLimit = 10000; # increase amount of saved lines
plugins = with pkgs.tmuxPlugins; [
2022-07-27 10:00:25 +02:00
# cpu # Show CPU load with easy icons
# vim-tmux-navigator # Switch between tmux and vim panes with ease
2022-05-11 23:11:54 +02:00
sessionist # Nicer workflow for switching around between session
# fastcopy # Easy copying of stuff
resurrect # Save / restore tmux sessions
# muxile # Track tmux sessions on my phone
# cowboy # kill all hanging processes inside pane
{
plugin = continuum; # start tmux on boot & more
extraConfig = ''
set -g @continuum-restore 'on'
set -g @continuum-boot 'on'
'';
}
2022-03-08 11:12:09 +01:00
];
extraConfig = ''
# Load current theme
source ${theme.tmux.path}
2022-03-09 19:03:04 +01:00
# load the rest of the config
source ${../../dotfiles/tmux/tmux.conf}
2022-03-08 11:12:09 +01:00
'';
};
2022-03-08 10:25:05 +01:00
};
}