feat(tmux): manage by home-manager

This commit is contained in:
2025-06-28 18:38:51 +08:00
parent dbd3195430
commit f400aaf570
3 changed files with 17 additions and 13 deletions

View File

@@ -196,7 +196,6 @@
".config/gh"
".config/pulse"
".config/go-musicfox/db"
".config/tmux/plugins"
".config/pip"
".config/obs-studio"
".config/libreoffice"

View File

@@ -58,15 +58,29 @@ lib.my.makeSwitch {
aria2
socat
tmux
trash-cli
cht-sh
dooit
];
xdg.configFile."tmux/tmux.conf".source = ./tmux.conf;
programs.tmux = {
enable = true;
extraConfig = "set-option -g mouse on";
plugins = [
(pkgs.tmuxPlugins.mkTmuxPlugin {
pluginName = "tokyo-night-tmux";
rtpFilePath = "tokyo-night.tmux";
version = "legacy";
src = pkgs.fetchFromGitHub {
owner = "janoamaral";
repo = "tokyo-night-tmux";
rev = "16469dfad86846138f594ceec780db27039c06cd";
hash = "sha256-EKCgYan0WayXnkSb2fDJxookdBLW0XBKi2hf/YISwJE=";
};
})
];
};
};
};
}

View File

@@ -1,9 +0,0 @@
set-option -g mouse on
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin "janoamaral/tokyo-night-tmux#legacy"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.config/tmux/plugins/tpm/tpm'