Skip to content

Commit

Permalink
nixos/tmux: add package option (NixOS#372994)
Browse files Browse the repository at this point in the history
Signed-off-by: phanirithvij <[email protected]>
  • Loading branch information
phanirithvij authored Jan 12, 2025
1 parent 9eb2e11 commit e5b47e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/programs/tmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
let
inherit (lib)
mkOption
mkPackageOption
mkIf
types
optionalString
Expand Down Expand Up @@ -87,6 +88,8 @@ in
relatedPackages = [ "tmux" ];
};

package = mkPackageOption pkgs "tmux" { };

aggressiveResize = mkOption {
default = false;
type = types.bool;
Expand Down Expand Up @@ -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)"}'';
Expand Down

0 comments on commit e5b47e1

Please sign in to comment.