From 7fb003982fbc326eb59e5178a2bc78c0d6e4211d Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Fri, 14 Jun 2024 10:44:19 -0400 Subject: [PATCH] added gui/modules wm check --- src/user/modules/gui/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/user/modules/gui/default.nix b/src/user/modules/gui/default.nix index 2b2f944..451b5e6 100644 --- a/src/user/modules/gui/default.nix +++ b/src/user/modules/gui/default.nix @@ -1,6 +1,17 @@ +{ config, ... }: + +let + gui = config.modules.user.gui.wm; + + wm = { + enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui); + }; + +in { imports = [ ./wm + ] ++ (if wm.enable then [ ./modules - ]; + ] else []); }