numtide / devshell

Per project developer environments
https://numtide.github.io/devshell/
MIT License
1.18k stars 86 forks source link

Expose `specialArgs.modulesPath` and `specialArgs.extraModulesPath` to flake module consumers #303

Open tomeon opened 4 months ago

tomeon commented 4 months ago

This PR factors out the construction of specialArgs, making those arguments available to flake module users as well as to users of devshell.mkShell.

Associated changes include:

  1. Replacing uses of the name extraModulesDir with extraModulesPath, to harmonize with the name of the specialArgs entry,
  2. Documentation of extraModulesPath usage,
  3. Demoing the use of extraModulesPath in the flake-parts-based flake template, and
  4. Running the basic nix develop <...> -c echo OK sanity-check on all flake templates (thus testing that the extraModulesPath in the flake-parts-based template hasn't broken anything too badly).

Thank you!