lib/generators/toSwayConf: add support for lists

This commit is contained in:
sinanmohd 2024-06-03 07:17:23 +05:30
parent 1604de516d
commit 74acd4d937

View file

@ -22,6 +22,8 @@
${indent}'';
in if lib.isInt v || lib.isFloat v || lib.isString v then
(builtins.toString v)
else if lib.isList v then
intro + concatItems v + outro
else if lib.isAttrs v then
(if v == { } then
abort "toSwayConfig: empty attribute set is unsupported"