mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03: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
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
mkOption
|
mkOption
|
||||||
|
mkPackageOption
|
||||||
mkIf
|
mkIf
|
||||||
types
|
types
|
||||||
optionalString
|
optionalString
|
||||||
|
@ -87,6 +88,8 @@ in
|
||||||
relatedPackages = [ "tmux" ];
|
relatedPackages = [ "tmux" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "tmux" { };
|
||||||
|
|
||||||
aggressiveResize = mkOption {
|
aggressiveResize = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
@ -224,7 +227,7 @@ in
|
||||||
environment = {
|
environment = {
|
||||||
etc."tmux.conf".text = tmuxConf;
|
etc."tmux.conf".text = tmuxConf;
|
||||||
|
|
||||||
systemPackages = [ pkgs.tmux ] ++ cfg.plugins;
|
systemPackages = [ cfg.package ] ++ cfg.plugins;
|
||||||
|
|
||||||
variables = {
|
variables = {
|
||||||
TMUX_TMPDIR = lib.optional cfg.secureSocket ''''${XDG_RUNTIME_DIR:-"/run/user/$(id -u)"}'';
|
TMUX_TMPDIR = lib.optional cfg.secureSocket ''''${XDG_RUNTIME_DIR:-"/run/user/$(id -u)"}'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue