Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Side notes for users not seeing matching output #352

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/pages/start/2.nix-run.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ This is in contrast to most [package managers][pkg], which install things more q
Future `nix run` invocations should be instantaneous, as Nix doesn't need to build the package again.
</Admonition>

<Admonition warning title="If you installed nix on your own" id="nix-run-loading" client:load>
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
(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
pages: see [nix command](https://nixos.wiki/wiki/Nix_command) and [flakes](https://nixos.wiki/wiki/Flakes).
</Admonition>


## Explanation

What happened here? The [Nix] CLI did a few things:
Expand Down
6 changes: 6 additions & 0 deletions src/pages/start/3.nix-develop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ type curl
type git
```

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
development environment we just activated:
```shell
echo $FUNNY_JOKE
```

For curl, for example, you should see a strange path like this (the hash part should be different on your machine):

<NixStorePath pkg="curl-8.1.1-bin" bin="curl" />
Expand Down