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

This commit is contained in:
Evy Garden 2026-01-09 18:53:30 +01:00 committed by Austin Horstman
parent 360620ec9d
commit 3912c447ee

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: