Fixed systemwide config

This commit is contained in:
Jan-Bulthuis 2025-02-27 11:11:52 +01:00
parent 8ca41a3a46
commit a61d63ff2c
1 changed files with 5 additions and 4 deletions

View File

@ -25,12 +25,13 @@ let
mkIf mkIf
(any ( (any (
user: user:
(user.modules.${name}.enable (
or (any (specialisation: specialisation.configuration.modules.${name}.enable) ( config.home-manager.users.${user}.modules.${name}.enable
attrValues user.modules.${name}.specialisations || (any (specialisation: specialisation.configuration.modules.${name}.enable) (
attrValues config.home-manager.users.${user}.specialisation
)) ))
) )
) (attrValues config.home-manager.users)) ) (attrNames config.home-manager.users))
(if (isAttrs moduleConfig) then moduleConfig else (moduleConfig { inherit config pkgs; })); (if (isAttrs moduleConfig) then moduleConfig else (moduleConfig { inherit config pkgs; }));
}; };