1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00
This commit is contained in:
Mahyar Mirrashed 2025-03-27 09:50:20 +01:00 committed by GitHub
commit 79455c6428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -183,13 +183,20 @@ in {
'';
};
extraConfig = mkOption {
type = types.lines;
extraConfigBeforePlugins = mkOption {
default = "";
description = ''
Additional configuration to add to
{file}`tmux.conf`.
Additional contents of /etc/tmux.conf, to be run before sourcing plugins.
'';
type = types.lines;
};
extraConfig = mkOption {
default = "";
description = ''
Additional contents of /etc/tmux.conf, to be run after sourcing plugins.
'';
type = types.lines;
};
focusEvents = mkOption {
@ -342,6 +349,10 @@ in {
}
{ xdg.configFile."tmux/tmux.conf".text = mkBefore tmuxConf; }
{
xdg.configFile."tmux/tmux.conf".text =
mkAfter cfg.extraConfigBeforePlugins;
}
{ xdg.configFile."tmux/tmux.conf".text = mkAfter cfg.extraConfig; }
(mkIf cfg.secureSocket {