diff --git a/lib/lua.nix b/lib/lua.nix index 749e9a3..c4685bb 100644 --- a/lib/lua.nix +++ b/lib/lua.nix @@ -79,7 +79,10 @@ in rec { then toLuaObject v else "[${toLuaObject n}] = " + (toLuaObject v)) (filterAttrs - (_: v: v != null) + ( + _: v: + (v != null) && (toLuaObject v != "{}") + ) args))) + "}" else if isList args