mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 02:39:45 +01:00
e00dd0d7d2
Tmux 3.2 includes support to use `$XDG_CONFIG_HOME/tmux/tmux.conf` as well as `~/.config/tmux/tmux.conf` for configuration file.
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.tmux = {
|
|
aggressiveResize = true;
|
|
clock24 = true;
|
|
enable = true;
|
|
keyMode = "emacs";
|
|
newSession = true;
|
|
reverseSplit = true;
|
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
logging
|
|
prefix-highlight
|
|
fzf-tmux-url
|
|
];
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
tmuxPlugins = super.tmuxPlugins // {
|
|
fzf-tmux-url = super.tmuxPlugins.fzf-tmux-url // {
|
|
rtp = "@tmuxplugin_fzf_tmux_url_rtp@";
|
|
};
|
|
|
|
logging = super.tmuxPlugins.logging // {
|
|
rtp = "@tmuxplugin_logging_rtp@";
|
|
};
|
|
|
|
prefix-highlight = super.tmuxPlugins.prefix-highlight // {
|
|
rtp = "@tmuxplugin_prefix_highlight_rtp@";
|
|
};
|
|
|
|
sensible = super.tmuxPlugins.sensible // {
|
|
rtp = "@tmuxplugin_sensible_rtp@";
|
|
};
|
|
};
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/tmux/tmux.conf
|
|
assertFileContent home-files/.config/tmux/tmux.conf ${
|
|
./emacs-with-plugins.conf
|
|
}
|
|
'';
|
|
};
|
|
}
|