fix: remove default discoverer from discoverers by subsystem

This commit is contained in:
Yusuf Bera Ertan 2022-10-07 17:01:20 +03:00
parent e32c973455
commit 033f894373
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -5,6 +5,9 @@ in {
config = {
discoverers = funcs.import_ collectedModules;
discoverersBySubsystem = funcs.structureBySubsystem config.discoverers;
discoverersBySubsystem = funcs.structureBySubsystem (
# remove the "default" discoverer we create, as it's not subsystem specific.
builtins.removeAttrs config.discoverers ["default"]
);
};
}