From 6055d0f28cd84195c1f599d94ea11a521c57f93d Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 8 Jul 2024 10:14:53 +0200 Subject: [PATCH] lib/types: allow emptyTable as a valid rawLua value --- lib/types.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types.nix b/lib/types.nix index 5e1127ad..4786c64e 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -22,7 +22,7 @@ rec { description = "raw lua code"; descriptionClass = "noun"; merge = mergeEqualOption; - check = isRawType; + check = v: (isRawType v) || (v ? __empty); }; maybeRaw = type: types.either type rawLua;