about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2023-08-26 22:47:33 +0200
committerGitHub <noreply@github.com>2023-08-26 22:47:33 +0200
commitda9db25ca4254065abb356476119d0485dafe896 (patch)
tree4dfffa1dc4a8812cbfcc23f144891480fb7f7b42 /nixos
parentb883cdad125fcb117d9252fba8e320d8d4c2734d (diff)
parentaddfb000c4f2ae2643886c7c3206b7b06fdad850 (diff)
downloadnixlib-da9db25ca4254065abb356476119d0485dafe896.tar
nixlib-da9db25ca4254065abb356476119d0485dafe896.tar.gz
nixlib-da9db25ca4254065abb356476119d0485dafe896.tar.bz2
nixlib-da9db25ca4254065abb356476119d0485dafe896.tar.lz
nixlib-da9db25ca4254065abb356476119d0485dafe896.tar.xz
nixlib-da9db25ca4254065abb356476119d0485dafe896.tar.zst
nixlib-da9db25ca4254065abb356476119d0485dafe896.zip
Merge pull request #222515 from codedownio/tmux-run-plugins-last
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/programs/tmux.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/nixos/modules/programs/tmux.nix b/nixos/modules/programs/tmux.nix
index 4f452f1d7f9b..0d1c7c9cdf0f 100644
--- a/nixos/modules/programs/tmux.nix
+++ b/nixos/modules/programs/tmux.nix
@@ -52,6 +52,8 @@ let
     set  -s escape-time       ${toString cfg.escapeTime}
     set  -g history-limit     ${toString cfg.historyLimit}
 
+    ${cfg.extraConfigBeforePlugins}
+
     ${lib.optionalString (cfg.plugins != []) ''
     # Run plugins
     ${lib.concatMapStringsSep "\n" (x: "run-shell ${x.rtp}") cfg.plugins}
@@ -108,10 +110,18 @@ in {
         description = lib.mdDoc "Time in milliseconds for which tmux waits after an escape is input.";
       };
 
+      extraConfigBeforePlugins = mkOption {
+        default = "";
+        description = lib.mdDoc ''
+          Additional contents of /etc/tmux.conf, to be run before sourcing plugins.
+        '';
+        type = types.lines;
+      };
+
       extraConfig = mkOption {
         default = "";
         description = lib.mdDoc ''
-          Additional contents of /etc/tmux.conf
+          Additional contents of /etc/tmux.conf, to be run after sourcing plugins.
         '';
         type = types.lines;
       };