From 11bb327ab532299176efeb08dba2f40801c52bf9 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Mon, 11 Nov 2024 00:44:13 +0100 Subject: [PATCH] lazy: add missing load() wrapper --- modules/wrapper/lazy/config.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/wrapper/lazy/config.nix b/modules/wrapper/lazy/config.nix index 01deeb0..5d4a926 100644 --- a/modules/wrapper/lazy/config.nix +++ b/modules/wrapper/lazy/config.nix @@ -50,6 +50,16 @@ end ''; + load = + if spec.load != null + then + mkLuaInline '' + funcion() + ${spec.load} + end + '' + else null; + keys = if typeOf spec.keys == "list" && length spec.keys > 0 && typeOf (head spec.keys) == "set" then map toLuaLznKeySpec (filter (keySpec: keySpec.key != null) spec.keys)