mirror of
https://github.com/nix-community/home-manager
synced 2024-06-01 04:23:34 +02:00
a163b13a28
Adds the possibility to add config before the plugins are loaded
48 lines
930 B
Nix
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}
|
|
'';
|
|
};
|
|
}
|