How to reset Nix environment?

While learning to use the shell, I tried installing Firefox and corrupted Nix. I now see errors in the console and shell, and can’t run code. I can’t delete the Repl as it was created by my school. How can I reset my Nix environment?

Create a new tab to open the replit.nix file, then click “History” in the bottom right and use the timeline to select and revert to a previous revision of the file.
when installing something by using the “command not found” dialog, to work around the packages being listed from an outdated index, you want to use the arrows on your keyboard to try and select the package with the most generic version (in this case, firefox-wrapped which has no version attached to it).


This works - thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.