home: tmux: fix 'hasGui' logic
All checks were successful
continuous-integration/drone/push Build is passing

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

View file

@ -1,7 +1,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.my.home.tmux; 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 in
{ {
options.my.home.tmux = with lib.my; { options.my.home.tmux = with lib.my; {