Fixed systemwide config
This commit is contained in:
parent
8ca41a3a46
commit
a61d63ff2c
|
@ -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; }));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue