From 86aa156fc06cd04eb6574b8ae6644f64c41bfb37 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 20 Feb 2023 11:06:34 +0000 Subject: [PATCH] home: tmux: fix 'hasGui' logic Take advantage of this fix to make the code more extensible. --- home/tmux/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/tmux/default.nix b/home/tmux/default.nix index 15becfb..88b35fb 100644 --- a/home/tmux/default.nix +++ b/home/tmux/default.nix @@ -1,7 +1,10 @@ { config, lib, pkgs, ... }: let cfg = config.my.home.tmux; - hasGUI = config.my.home.x.enable || (config.my.home.wm != null); + hasGUI = lib.any lib.id [ + config.my.home.x.enable + (config.my.home.wm.windowManager != null) + ]; in { options.my.home.tmux = with lib.my; {