Skip to content

Commit fce9184

Browse files
committed
Side notes for users not seeing matching output
For readers who have not used the Determinate Nix Installer, they'll probably need to activate the nix command and flakes, and they may not get the change in command prompt in entry 3. This is the case if someone is using the official installer or trying to read through the guide on nixos. Closes DeterminateSystems#315.
1 parent c08bc68 commit fce9184

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/pages/start/2.nix-run.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ This is in contrast to most [package managers][pkg], which install things more q
2727
Future `nix run` invocations should be instantaneous, as Nix doesn't need to build the package again.
2828
</Admonition>
2929

30+
<Admonition warning title="If you installed nix on your own" id="nix-run-loading" client:load>
31+
If you installed Nix by means other than the [Determinate Nix Installer][nix-installer], you'll probably need to manually enable the nix command and flakes
32+
(if you're seeing an error about experimental features, this it you). you can find out how to activate those features on their respective Nix wiki
33+
pages: see [nix command](https://nixos.wiki/wiki/Nix_command) and [flakes](https://nixos.wiki/wiki/Flakes).
34+
</Admonition>
35+
36+
3037
## Explanation
3138

3239
What happened here? The [Nix] CLI did a few things:

src/pages/start/3.nix-develop.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ type curl
4242
type git
4343
```
4444

45+
If your shell prompt didn't change, you should still be able to tell something happened by checking the `FUNNY_JOKE` variable added by the
46+
development environment we just activated:
47+
```shell
48+
echo $FUNNY_JOKE
49+
```
50+
4551
For curl, for example, you should see a strange path like this (the hash part should be different on your machine):
4652

4753
<NixStorePath pkg="curl-8.1.1-bin" bin="curl" />

0 commit comments

Comments
 (0)