diff --git a/lib/helpers.nix b/lib/helpers.nix index eb30b5ad..da5e1abf 100644 --- a/lib/helpers.nix +++ b/lib/helpers.nix @@ -20,7 +20,7 @@ with lib; rec { if head (stringToCharacters n) == "@" then toLuaObject v else "[${toLuaObject n}] = " + (toLuaObject v)) - (filterAttrs (n: v: !isNull v && toLuaObject v != "{}") args))) + (filterAttrs (n: v: !isNull v) args))) + "}" else if builtins.isList args then "{" + concatMapStringsSep "," toLuaObject args + "}"