added gui/modules wm check

This commit is contained in:
Bryan Ramos 2024-06-14 10:44:19 -04:00
parent ce2a9c5dd2
commit 7fb003982f
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8

View file

@ -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 []);
}