fix: export modules as functions instead of paths

This commit is contained in:
Jake Hamilton 2023-01-06 09:50:28 -08:00
parent 23c08d04f9
commit b723802808
No known key found for this signature in database
GPG key ID: 9762169A1B35EA68

View file

@ -28,7 +28,7 @@ in
modules-metadata = builtins.map create-module-metadata user-modules;
merge-modules = modules: metadata:
modules // {
${metadata.name} = metadata.path;
${metadata.name} = import metadata.path;
};
modules-without-default = foldl merge-modules { } modules-metadata;
default-module =