From 506b29c726505ea7a503d22702b8cafddee32909 Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:25:44 -0400 Subject: [PATCH] lib: avoid filtering null values to be used as nil --- lib/lua.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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