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)"}'';