lib/generators/toSwayConf: add support for lists
This commit is contained in:
parent
1604de516d
commit
74acd4d937
|
@ -22,6 +22,8 @@
|
||||||
${indent}'';
|
${indent}'';
|
||||||
in if lib.isInt v || lib.isFloat v || lib.isString v then
|
in if lib.isInt v || lib.isFloat v || lib.isString v then
|
||||||
(builtins.toString v)
|
(builtins.toString v)
|
||||||
|
else if lib.isList v then
|
||||||
|
intro + concatItems v + outro
|
||||||
else if lib.isAttrs v then
|
else if lib.isAttrs v then
|
||||||
(if v == { } then
|
(if v == { } then
|
||||||
abort "toSwayConfig: empty attribute set is unsupported"
|
abort "toSwayConfig: empty attribute set is unsupported"
|
||||||
|
|
Loading…
Reference in a new issue