We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb2e11 commit e5b47e1Copy full SHA for e5b47e1
nixos/modules/programs/tmux.nix
@@ -8,6 +8,7 @@
8
let
9
inherit (lib)
10
mkOption
11
+ mkPackageOption
12
mkIf
13
types
14
optionalString
@@ -87,6 +88,8 @@ in
87
88
relatedPackages = [ "tmux" ];
89
};
90
91
+ package = mkPackageOption pkgs "tmux" { };
92
+
93
aggressiveResize = mkOption {
94
default = false;
95
type = types.bool;
@@ -224,7 +227,7 @@ in
224
227
environment = {
225
228
etc."tmux.conf".text = tmuxConf;
226
229
- systemPackages = [ pkgs.tmux ] ++ cfg.plugins;
230
+ systemPackages = [ cfg.package ] ++ cfg.plugins;
231
232
variables = {
233
TMUX_TMPDIR = lib.optional cfg.secureSocket ''''${XDG_RUNTIME_DIR:-"/run/user/$(id -u)"}'';
0 commit comments