tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
tmux: add extraConfigBeforePlugins
Tom McLaughlin
2 years ago
addfb000
4265f180
+11
-1
1 changed file
expand all
collapse all
unified
split
nixos
modules
programs
tmux.nix
+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
55
+
${cfg.extraConfigBeforePlugins}
56
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
113
+
extraConfigBeforePlugins = mkOption {
114
114
+
default = "";
115
115
+
description = lib.mdDoc ''
116
116
+
Additional contents of /etc/tmux.conf, to be run before sourcing plugins.
117
117
+
'';
118
118
+
type = types.lines;
119
119
+
};
120
120
+
111
121
extraConfig = mkOption {
112
122
default = "";
113
123
description = lib.mdDoc ''
114
114
-
Additional contents of /etc/tmux.conf
124
124
+
Additional contents of /etc/tmux.conf, to be run after sourcing plugins.
115
125
'';
116
126
type = types.lines;
117
127
};