1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-09 09:36:20 +09:00

nixos/tmux: add package option (#372994)

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
Phani Rithvij 2025-01-12 05:52:59 +05:30 committed by GitHub
parent 9eb2e11b4d
commit e5b47e167a
Signed by: github
GPG key ID: B5690EEEBB952194

View file

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