home: tmux: fix 'hasGui' logic
continuous-integration/drone/push Build is passing Details

Take advantage of this fix to make the code more extensible.
This commit is contained in:
Bruno BELANYI 2023-02-20 11:06:34 +00:00
parent 54f335d984
commit 86aa156fc0
1 changed files with 4 additions and 1 deletions

View File

@ -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; {