From e5b47e167ad5663297ad6c139476ad58259bfa64 Mon Sep 17 00:00:00 2001 From: Phani Rithvij Date: Sun, 12 Jan 2025 05:52:59 +0530 Subject: [PATCH] nixos/tmux: add package option (#372994) Signed-off-by: phanirithvij --- nixos/modules/programs/tmux.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/tmux.nix b/nixos/modules/programs/tmux.nix index fe7a2789f71b8..0fcf75d75c1a5 100644 --- a/nixos/modules/programs/tmux.nix +++ b/nixos/modules/programs/tmux.nix @@ -8,6 +8,7 @@ let inherit (lib) mkOption + mkPackageOption mkIf types optionalString @@ -87,6 +88,8 @@ in relatedPackages = [ "tmux" ]; }; + package = mkPackageOption pkgs "tmux" { }; + aggressiveResize = mkOption { default = false; type = types.bool; @@ -224,7 +227,7 @@ in environment = { etc."tmux.conf".text = tmuxConf; - systemPackages = [ pkgs.tmux ] ++ cfg.plugins; + systemPackages = [ cfg.package ] ++ cfg.plugins; variables = { TMUX_TMPDIR = lib.optional cfg.secureSocket ''''${XDG_RUNTIME_DIR:-"/run/user/$(id -u)"}'';