Skip to content

Commit e5b47e1

Browse files
authored
nixos/tmux: add package option (#372994)
Signed-off-by: phanirithvij <[email protected]>
1 parent 9eb2e11 commit e5b47e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nixos/modules/programs/tmux.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
let
99
inherit (lib)
1010
mkOption
11+
mkPackageOption
1112
mkIf
1213
types
1314
optionalString
@@ -87,6 +88,8 @@ in
8788
relatedPackages = [ "tmux" ];
8889
};
8990

91+
package = mkPackageOption pkgs "tmux" { };
92+
9093
aggressiveResize = mkOption {
9194
default = false;
9295
type = types.bool;
@@ -224,7 +227,7 @@ in
224227
environment = {
225228
etc."tmux.conf".text = tmuxConf;
226229

227-
systemPackages = [ pkgs.tmux ] ++ cfg.plugins;
230+
systemPackages = [ cfg.package ] ++ cfg.plugins;
228231

229232
variables = {
230233
TMUX_TMPDIR = lib.optional cfg.secureSocket ''''${XDG_RUNTIME_DIR:-"/run/user/$(id -u)"}'';

0 commit comments

Comments
 (0)