A bit confused about what modules and flakes get as inputs

Can someone help a confused noob? I have been looking into flakes, modules, flake parts and I’m a bit confused, I think that I’m mixing things in my brain :brain:. I see that modules get config and lib, but in some other parts I see lib being taken from pkgs. Other times pkgs is accessed from self, same for lib, but modules don’t get self, so some people pass down the inputs … Flake parts seem to pass self’s down… And then there are the imports that take arguments that mimic both apis… And I don’t know what to expect where

Pretty much all flake and some flake.parts-related questions are answered here(shameless plug).

WRT the modules, check the wiki.

1 Like