home: tmux: fix 'hasGui' logic
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
54f335d984
commit
86aa156fc0
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue