What‘s the full list of parameters nixos modules get called with and how could that be influenced

I have a very simple question. At the start of every nixos module I have something like:

{ pkgs, lib, config, ... }: ...

where do those parameters come from exactly?

2 Likes

I dug a bit into the source code here.

Also, there is a new discussion of this in What are the arguments available to a given module?.

3 Likes