lol

tmux: add extraConfigBeforePlugins

+11 -1
+11 -1
nixos/modules/programs/tmux.nix
··· 52 52 set -s escape-time ${toString cfg.escapeTime} 53 53 set -g history-limit ${toString cfg.historyLimit} 54 54 55 + ${cfg.extraConfigBeforePlugins} 56 + 55 57 ${lib.optionalString (cfg.plugins != []) '' 56 58 # Run plugins 57 59 ${lib.concatMapStringsSep "\n" (x: "run-shell ${x.rtp}") cfg.plugins} ··· 108 110 description = lib.mdDoc "Time in milliseconds for which tmux waits after an escape is input."; 109 111 }; 110 112 113 + extraConfigBeforePlugins = mkOption { 114 + default = ""; 115 + description = lib.mdDoc '' 116 + Additional contents of /etc/tmux.conf, to be run before sourcing plugins. 117 + ''; 118 + type = types.lines; 119 + }; 120 + 111 121 extraConfig = mkOption { 112 122 default = ""; 113 123 description = lib.mdDoc '' 114 - Additional contents of /etc/tmux.conf 124 + Additional contents of /etc/tmux.conf, to be run after sourcing plugins. 115 125 ''; 116 126 type = types.lines; 117 127 };