Skip to content

Commit

Permalink
fix: use recursive update for spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Sep 1, 2024
1 parent 5ba4e69 commit 36761e2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 36761e2

Please sign in to comment.