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:
parent
9eb2e11b4d
commit
e5b47e167a
1 changed files with 4 additions and 1 deletions
|
@ -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)"}'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue