attempt to fix recursion problem

This commit is contained in:
Bryan Ramos 2024-06-14 11:22:51 -04:00
parent 2cfbc2c9e4
commit 648f7a8937
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
2 changed files with 11 additions and 14 deletions

View file

@ -1,17 +1,6 @@
{ 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 []);
];
}

View file

@ -1,10 +1,18 @@
{ config, lib, ... }:
let
wm = {
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues config.modules.user.gui.wm);
};
in
{
imports = [
imports = if wm.enable then [
./alacritty
./browsers
./corn
./fun
./utils
./writing
];
] else [];
}