DeterminateSystems / zero-to-nix

Zero to Nix is your guide to learning Nix and flakes. Created by Determinate Systems.
https://zero-to-nix.com
Other
855 stars 64 forks source link

missing step `src/pages/start/3.nix-develop.mdx` #344

Open coryschwartz opened 3 months ago

coryschwartz commented 3 months ago

There's a small bug on this page. I don't think it will trip anybody up, but it seems like if you follow current steps precisely (and without thinking) then the tutorial is slightly wrong.

In the section following "Two other things that you can provide in Nix development environments:"

we enter this section having already entered the Example development environment. So we are already one development environment deep the start.

Step 1 has us enter the hook development environment and see what happens there. Now we are two development environments deep. Step 2 has us look at an environment variable that was created when we entered the Example environment.

Then, we are asked to exit and observe that the $FUNNY_JOKE variable is no longer visible. Of course, this is not actually the case because we only exited once. You'd need to exit twice to completely leave the environments.

lucperkins commented 2 months ago

This will be addressed by #350