lib.generators.toKDL: fix _children not being applied on root level

This commit is contained in:
Evy Garden
2026-01-12 20:38:42 -06:00
committed by Austin Horstman
parent 360620ec9d
commit 3912c447ee
+9 -1
View File
@@ -203,7 +203,15 @@
else if vType == "set" then
convertAttrsToKDL name value
else if vType == "list" then
convertListToKDL name value
if name == "_children" then
concatStringsSep "\n" (
map (lib.flip lib.pipe [
(mapAttrsToList convertAttributeToKDL)
(concatStringsSep "\n")
]) value
)
else
convertListToKDL name value
else
throw ''
Cannot convert type `(${typeOf value})` to KDL: