From 36761e2fcd5e81fa3b39cb72d9fbcb92098edad8 Mon Sep 17 00:00:00 2001 From: winston Date: Sun, 1 Sep 2024 17:44:01 +0200 Subject: [PATCH] fix: use recursive update for spec --- modules/plugins/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/plugins/default.nix b/modules/plugins/default.nix index 6eb6e37..227924c 100644 --- a/modules/plugins/default.nix +++ b/modules/plugins/default.nix @@ -211,11 +211,10 @@ in { // optionalAttrs (attrs.main != null) {inherit (attrs) main;} // optionalAttrs (attrs.priority != null) {inherit (attrs) priority;}; in - lib.generators.toLua {} (cfg.settings - // { - spec = mapAttrsToList toPlugin' cfg.plugins; - performance.rtp.reset = false; - }); + lib.generators.toLua {} (lib.recursiveUpdate cfg.settings { + spec = mapAttrsToList toPlugin' cfg.plugins; + performance.rtp.reset = false; + }); plugins = pkgs.runCommand "plugins.lua" {