mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
added gui/modules wm check
This commit is contained in:
parent
ce2a9c5dd2
commit
7fb003982f
1 changed files with 12 additions and 1 deletions
|
|
@ -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 []);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue