summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorTom McLaughlin <tom@codedown.io>2023-03-22 02:07:15 -0700
committerTom McLaughlin <tom@codedown.io>2023-08-05 18:59:52 -0700
commitaddfb000c4f2ae2643886c7c3206b7b06fdad850 (patch)
tree9f25579fb571b551413a03979cfc78472ac1a900 /nixos
parent4265f1803dcf555f89690a8fb5dee50abc1c8089 (diff)
downloadnixpkgs-addfb000c4f2ae2643886c7c3206b7b06fdad850.tar
nixpkgs-addfb000c4f2ae2643886c7c3206b7b06fdad850.tar.gz
nixpkgs-addfb000c4f2ae2643886c7c3206b7b06fdad850.tar.bz2
nixpkgs-addfb000c4f2ae2643886c7c3206b7b06fdad850.tar.lz
nixpkgs-addfb000c4f2ae2643886c7c3206b7b06fdad850.tar.xz
nixpkgs-addfb000c4f2ae2643886c7c3206b7b06fdad850.tar.zst
nixpkgs-addfb000c4f2ae2643886c7c3206b7b06fdad850.zip
tmux: add extraConfigBeforePlugins
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 4f452f1d7f9..0d1c7c9cdf0 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;
       };