Problem description:
Sometimes, when you type the name of a command that isn’t installed, it shows something like this:
commandName: command not installed, but was located via Nix.
Would you like to run commandName from Nix and add it to your replit.nix file? [Yn]:
Expected behavior:
Add the package to the .replit file instead of the replit.nix file
Actual behavior:
Adds the package to the replit.nix file
Steps to reproduce:
Wear your explorers hat, create a new node.js repl, go to your shell and type something like neofetch or another common command
Why would you think it’d add it to .replit? Not every command has a Nix module, and if you want to add a new one, you can open the .replit file and add the module in the array and reload the shell (either by running kill 1 or running a different command)
For every module there is, you can have a look on the nixmodules GitHub repo here