mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36: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:
parent
2a749f4790
commit
567312006a
1 changed files with 5 additions and 6 deletions
|
|
@ -244,7 +244,7 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
package = lib.mkPackageOption pkgs "tmux" { };
|
||||
package = lib.mkPackageOption pkgs "tmux" { nullable = true; };
|
||||
|
||||
reverseSplit = mkOption {
|
||||
default = false;
|
||||
|
|
@ -351,11 +351,10 @@ in
|
|||
config = lib.mkIf cfg.enable (
|
||||
lib.mkMerge [
|
||||
{
|
||||
home.packages = [
|
||||
cfg.package
|
||||
]
|
||||
++ lib.optional cfg.tmuxinator.enable pkgs.tmuxinator
|
||||
++ lib.optional cfg.tmuxp.enable pkgs.tmuxp;
|
||||
home.packages =
|
||||
lib.optional (cfg.package != null) cfg.package
|
||||
++ lib.optional cfg.tmuxinator.enable pkgs.tmuxinator
|
||||
++ lib.optional cfg.tmuxp.enable pkgs.tmuxp;
|
||||
}
|
||||
|
||||
{ xdg.configFile."tmux/tmux.conf".text = lib.mkBefore tmuxConf; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue