mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
attempt to fix recursion problem
This commit is contained in:
parent
2cfbc2c9e4
commit
648f7a8937
2 changed files with 11 additions and 14 deletions
|
|
@ -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 = [
|
imports = [
|
||||||
./wm
|
./wm
|
||||||
] ++ (if wm.enable then [
|
|
||||||
./modules
|
./modules
|
||||||
] else []);
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
./alacritty
|
||||||
./browsers
|
./browsers
|
||||||
./corn
|
./corn
|
||||||
./fun
|
./fun
|
||||||
./utils
|
./utils
|
||||||
./writing
|
./writing
|
||||||
];
|
] else [];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue