diff --git a/source/tutorials/first-steps/ad-hoc-shell-environments.md b/source/tutorials/first-steps/ad-hoc-shell-environments.md index b670f0970..836411b49 100644 --- a/source/tutorials/first-steps/ad-hoc-shell-environments.md +++ b/source/tutorials/first-steps/ad-hoc-shell-environments.md @@ -185,7 +185,7 @@ There are three things going on here: - {ref}`reproducible-scripts` – use Nix for reproducible scripts - {ref}`reading-nix-language` – learn reading the Nix language, which is used to declare packages and configurations - {ref}`declarative-reproducible-envs` – create reproducible shell environments with a declarative configuration file -- {ref}`pinning-nixpkgs` – learn different ways of specifying exact versions of package sources +- {ref}`ref-pinning-nixpkgs` – learn different ways of specifying exact versions of package sources If you're done trying out Nix for now, you may want to free up some disk space occupied by the different versions of programs you downloaded by running the examples: diff --git a/source/tutorials/first-steps/nix-language.md b/source/tutorials/first-steps/nix-language.md index 7a1c790cd..d98a03336 100644 --- a/source/tutorials/first-steps/nix-language.md +++ b/source/tutorials/first-steps/nix-language.md @@ -1668,7 +1668,7 @@ pkgs.lib.strings.toUpper "always pin your sources" ALWAYS PIN YOUR SOURCES ``` -See [](pinning-nixpkgs) for details. +See [](ref-pinning-nixpkgs) for details. What you will also often see is that `pkgs` is passed as an argument to a function. By convention one can assume that it refers to the Nixpkgs attribute set, which has a `lib` attribute: