From 0b0bbfd3480d0582d4ce8f8fac470e8e63ec8234 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 01deeb0f..5d4a9267 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)