ClanModules: make all module available to inventory
This commit is contained in:
@@ -135,6 +135,8 @@ let
|
||||
in
|
||||
if builtins.pathExists path then
|
||||
path
|
||||
else if role == "default" then
|
||||
{ }
|
||||
else
|
||||
throw "Module doesn't have role: '${role}'. Path: ${path} not found."
|
||||
) inverseRoles.${machineName} or [ ];
|
||||
|
||||
@@ -96,7 +96,7 @@ let
|
||||
let
|
||||
roles = getRoles self.clanModules.${moduleName};
|
||||
in
|
||||
if roles == null then [ ] else roles;
|
||||
if roles == null then [ "default" ] else roles;
|
||||
moduleServices = lib.mapAttrs moduleToService (
|
||||
lib.filterAttrs (n: _v: rolesOf n != [ ]) modulesSchema
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user