1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00
home-manager/tests/modules/programs/tmux/extra-config-before-plugins.nix
Gabriel Nützi a163b13a28 tmux: Add extraConfigBeforePlugins to tmux.config
Adds the possibility to add config before the plugins are loaded
2023-11-17 19:01:55 +01:00

48 lines
930 B
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
];
};
nixpkgs.overlays = [
(self: super: {
tmuxPlugins =
super.tmuxPlugins
// {
logging =
super.tmuxPlugins.logging
// {
rtp = "@tmuxplugin_logging_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}
'';
};
}