lib/generators/toSwayConf: add support for lists
This commit is contained in:
parent
1604de516d
commit
74acd4d937
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue