Inventory: allow arbitrary imports from nix

This commit is contained in:
Johannes Kirschbauer
2024-09-15 16:43:36 +02:00
committed by hsjobeki
parent c63f5b7b92
commit c21a265e21
2 changed files with 7 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ let
builtins.map (role: serviceConfig.roles.${role}.config or { }) inverseRoles.${machineName} or [ ]
);
customImports = map (s: "${directory}/${s}") (
customImports = map (s: if builtins.typeOf s == "string" then "${directory}/${s}" else s) (
globalImports ++ machineImports ++ roleServiceImports
);
in