diff --git a/home/tmux/default.nix b/home/tmux/default.nix index 88b35fbc..4dbe7f70 100644 --- a/home/tmux/default.nix +++ b/home/tmux/default.nix @@ -1,10 +1,7 @@ { config, lib, pkgs, ... }: let cfg = config.my.home.tmux; - hasGUI = lib.any lib.id [ - config.my.home.x.enable - (config.my.home.wm.windowManager != null) - ]; + hasGUI = config.my.home.x.enable || (config.my.home.wm != null); in { options.my.home.tmux = with lib.my; { @@ -27,7 +24,7 @@ in pain-control # Better session management sessionist - { + (lib.optionalAttrs hasGUI { # X clipboard integration plugin = yank; extraConfig = '' @@ -36,7 +33,7 @@ in # Stay in copy mode after yanking set -g @yank_action 'copy-pipe' ''; - } + }) { # Show when prefix has been pressed plugin = prefix-highlight;