Asterix sybol on an import path in nix language?

Import does no globbing. What you wrote expects a file with the name *nix.
What you want is implemented e.g. by Haumea: Haumea - Filesystem-based module system for Nix

2 Likes