Clan-cli/api: list external modules

This commit is contained in:
Johannes Kirschbauer
2024-11-21 17:02:15 +01:00
parent 2b284af95e
commit 0e556302c1
2 changed files with 3 additions and 11 deletions

View File

@@ -2,17 +2,10 @@
self,
self',
pkgs,
lib,
...
}:
let
# { mName :: { roleName :: Options } }
# getModulesSchema = modules: lib.mapAttrs (
# _moduleName: rolesOptions:
# lib.mapAttrs (_roleName: options: jsonWithoutHeader.parseOptions options { }) rolesOptions
# ) (self.lib.evalClanModulesWithRoles modules);
modulesSchema = self.lib.modules.getModulesSchema self.clanModules;
jsonLib = self.lib.jsonschema { inherit includeDefaults; };
@@ -49,7 +42,6 @@ in
frontMatterSchema
inventorySchema
modulesSchema
getModulesSchema
renderSchema
inventory-schema-abstract
;