1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

tmux: make package nullable (#7682)

This makes the program.tmux.package argument nullable, allowing use of system tmux.
This commit is contained in:
Max Wipfli 2025-08-17 04:30:44 +02:00 committed by GitHub
parent 2a749f4790
commit 567312006a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -244,7 +244,7 @@ in
'';
};
package = lib.mkPackageOption pkgs "tmux" { };
package = lib.mkPackageOption pkgs "tmux" { nullable = true; };
reverseSplit = mkOption {
default = false;
@ -351,9 +351,8 @@ in
config = lib.mkIf cfg.enable (
lib.mkMerge [
{
home.packages = [
cfg.package
]
home.packages =
lib.optional (cfg.package != null) cfg.package
++ lib.optional cfg.tmuxinator.enable pkgs.tmuxinator
++ lib.optional cfg.tmuxp.enable pkgs.tmuxp;
}