modules/plugin: fix extraImports

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-03 00:28:12 +03:00
parent 0bb649270c
commit 8628fb2ed8
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -63,7 +63,7 @@ let
genConfig = with lib.nix2lua; lib.mkIf (!config.isDependency) (lib.flatten [ genConfig = with lib.nix2lua; lib.mkIf (!config.isDependency) (lib.flatten [
(local (set config.varName (require config.name))) (local (set config.varName (require config.name)))
(lib.mapAttrsToList (k: v: local (set k) (require v)) config.extraImports) (lib.mapAttrsToList (k: v: local (set k (require v))) config.extraImports)
config.beforeSetup config.beforeSetup
(lib.optional (config.setupSettings != null) (lib.optional (config.setupSettings != null)
(pipe1 (var config.varName) (call config.setupFnName config.setupSettings)) (pipe1 (var config.varName) (call config.setupFnName config.setupSettings))