Docs/inventory: ad-hoc loading of user modules
This commit is contained in:
committed by
hsjobeki
parent
d6b8716e00
commit
36d094501d
@@ -58,7 +58,7 @@ let
|
||||
res = builtins.mapAttrs (
|
||||
moduleName: module:
|
||||
let
|
||||
frontmatter = clan-core.lib.modules.getFrontmatter moduleName;
|
||||
frontmatter = clan-core.lib.modules.getFrontmatter allModules.${moduleName} moduleName;
|
||||
roles =
|
||||
if builtins.elem "inventory" frontmatter.features or [ ] then
|
||||
assert lib.isPath module;
|
||||
|
||||
Reference in New Issue
Block a user