Related discussion:
Any sites you can link that explain the differences and how to use it?
There's a short explanation in this section: https://nixos.org/manual/nixos/stable/#sec-option-types-submodule (look for specialArgs) and in this section: https://nixos.org/manual/nixpkgs/stable/#module-system-lib-evalModules-param-specialArgs. I don't know whether it's documented properly somewhere.
specialArgs
Any sites you can link that explain the differences and how to use it?
There's a short explanation in this section: https://nixos.org/manual/nixos/stable/#sec-option-types-submodule (look for
specialArgs) and in this section: https://nixos.org/manual/nixpkgs/stable/#module-system-lib-evalModules-param-specialArgs. I don't know whether it's documented properly somewhere.