Skip to content

Commit 1075103

Browse files
update all links to the Nix manual
1 parent 62c6fb7 commit 1075103

16 files changed

Lines changed: 64 additions & 64 deletions

maintainers/documentation-survey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ To better navigate the material and judge its relevance, every entry should prov
236236

237237
### Nix
238238

239-
- https://nixos.org/manual/nix/stable/command-ref/command-ref.html
239+
- https://nix.dev/manual/nix/2.17/command-ref/command-ref.html
240240
- https://edolstra.github.io/pubs/phd-thesis.pdf
241241

242242
### Nix language
243243

244244
- https://edolstra.github.io/pubs/phd-thesis.pdf
245-
- https://nixos.org/manual/nix/stable/expressions/writing-nix-expressions.html
245+
- https://nix.dev/manual/nix/2.17/expressions/writing-nix-expressions.html
246246
- https://github.com/tazjin/nix-1p
247247

248248
### Nixpkgs

source/concepts/faq.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ The Nix logo is inspired by [an idea for the Haskell logo](https://wiki.haskell.
1414
{ref}`Flakes <flakes>` were originally proposed in [RFC 49](https://github.com/NixOS/rfcs/pull/49), and have been in development since 2019.
1515
Nix introduced the implementation as its first [experimental feature] in 2021.
1616

17-
[experimental feature]: https://nixos.org/manual/nix/unstable/contributing/experimental-features.html
17+
[experimental feature]: https://nix.dev/manual/nix/2.17/contributing/experimental-features.html
1818

1919
The subject is considered controversial among Nix users and developers in terms of design, development processes, and community governance.
2020
In particular:
2121
- The RFC was closed without conclusion, and some design and implementation issues are not yet resolved.
2222
Examples include the notion of a global [flake registry], the [impossibility of parameterising flakes](https://github.com/NixOS/nix/issues/2861), and the [new command line interface and flakes being closely tied to each other](https://discourse.nixos.org/t/2023-03-06-nix-team-meeting-minutes-38/26056#cli-stabilisation-announcement-draft-4).
23-
- The original implementation introduced [regressions](https://discourse.nixos.org/t/nix-2-4-and-what-s-next/16257) in the [Nix 2.4 release](https://nixos.org/manual/nix/stable/release-notes/rl-2.4.html), breaking some stable functionality without a [major version](https://semver.org/) increment.
23+
- The original implementation introduced [regressions](https://discourse.nixos.org/t/nix-2-4-and-what-s-next/16257) in the [Nix 2.4 release](https://nix.dev/manual/nix/2.17/release-notes/rl-2.4.html), breaking some stable functionality without a [major version](https://semver.org/) increment.
2424
- New Nix users were and still are encouraged by various individuals to adopt flakes despite there being no concrete plan or timeline for stabilisation.
2525

26-
[flake registry]: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-registry.html
26+
[flake registry]: https://nix.dev/manual/nix/2.17/command-ref/new-cli/nix3-registry.html
2727

2828
This led to a situation where the stable interface was only sparsely maintained for multiple years, and repeatedly suffered breakages due to ongoing development.
2929
Meanwhile, the new interface was adopted widely enough for evolving its design without negatively affecting users to become very challenging.
@@ -50,7 +50,7 @@ Both paradigms have their own set of unique concepts and support tooling that ha
5050
At the moment, neither the stable nor the experimental interface is clearly superior to the other in all aspects.
5151
While flakes reduce complexity in some regards, they also introduce additional mechanisms and you will have to learn more about the system to fully understand how it works.
5252

53-
There are downsides to relying on [experimental features](https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-experimental-features) in general:
53+
There are downsides to relying on [experimental features](https://nix.dev/manual/nix/2.17/command-ref/conf-file.html#conf-experimental-features) in general:
5454

5555
- Interfaces and behaviour of experimental features could still be changed by Nix developers.
5656
This may require you to adapt your code at some point in the future, which will be more effort when it has grown in complexity.
@@ -96,7 +96,7 @@ Yes. There is:
9696

9797
- CPU architecture—great effort being made to avoid compilation of native instructions in favour of hardcoded supported ones.
9898
- System's current time/date.
99-
- The filesystem used for building (see also [`TMPDIR`](https://nixos.org/manual/nix/stable/command-ref/env-common.html#env-TMPDIR)).
99+
- The filesystem used for building (see also [`TMPDIR`](https://nix.dev/manual/nix/2.17/command-ref/env-common.html#env-TMPDIR)).
100100
- Linux kernel parameters, such as:
101101
- [IPv6 capabilities](https://github.com/NixOS/nix/issues/5615).
102102
- binfmt interpreters, e.g., those configured with [`boot.binfmt.emulatedSystems`](https://search.nixos.org/options?show=boot.binfmt.emulatedSystems).

source/concepts/flakes.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ What is usually referred to as "flakes" is:
55
- A policy for managing dependencies between {term}`Nix expressions<Nix expression>`.
66
- An [experimental feature] in Nix, implementing that policy and supporting functionality.
77

8-
[experimental feature]: https://nixos.org/manual/nix/unstable/contributing/experimental-features.html
8+
[experimental feature]: https://nix.dev/manual/nix/2.17/contributing/experimental-features.html
99

10-
Technically, a [flake](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#description) is a file system tree that contains a file named `flake.nix` in its root directory.
10+
Technically, a [flake](https://nix.dev/manual/nix/2.17/command-ref/new-cli/nix3-flake.html#description) is a file system tree that contains a file named `flake.nix` in its root directory.
1111

1212
Flakes add the following behavior to Nix:
1313

14-
1. A `flake.nix` file offers a uniform [schema](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#flake-format) , where:
14+
1. A `flake.nix` file offers a uniform [schema](https://nix.dev/manual/nix/2.17/command-ref/new-cli/nix3-flake.html#flake-format) , where:
1515
- Other flakes can be referenced as dependencies providing {term}`Nix language` code or other files.
1616
- The values produced by the {term}`Nix expression`s in `flake.nix` are structured according to pre-defined use cases.
1717

18-
1. References to other flakes can be specified using a dedicated [URL-like syntax](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#flake-references).
18+
1. References to other flakes can be specified using a dedicated [URL-like syntax](https://nix.dev/manual/nix/2.17/command-ref/new-cli/nix3-flake.html#flake-references).
1919
A [flake registry] allows using symbolic identifiers for further brevity.
2020
References can be automatically locked to their current specific version and later updated programmatically.
2121

22-
[flake registry]: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-registry.html
22+
[flake registry]: https://nix.dev/manual/nix/2.17/command-ref/new-cli/nix3-registry.html
2323

2424
1. A [new command line interface], implemented as a separate experimental feature, leverages flakes by accepting flake references in order to build, run, or deploy software defined as a flake.
2525

26-
[new command line interface]: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix.html
26+
[new command line interface]: https://nix.dev/manual/nix/2.17/command-ref/new-cli/nix.html
2727

2828
Nix handles flakes differently than regular {term}`Nix file`s in the following ways:
2929

source/guides/best-practices.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ You will often encounter Nix language code samples that refer to `<nixpkgs>`.
119119
`<...>` is special syntax that was [introduced in 2011] to conveniently access values from the environment variable [`$NIX_PATH`].
120120

121121
[introduced in 2011]: https://github.com/NixOS/nix/commit/1ecc97b6bdb27e56d832ca48cdafd3dbb5185a04
122-
[`$NIX_PATH`]: https://nixos.org/manual/nix/unstable/command-ref/env-common.html#env-NIX_PATH
122+
[`$NIX_PATH`]: https://nix.dev/manual/nix/2.17/command-ref/env-common.html#env-NIX_PATH
123123

124124
This means, the value of a lookup path depends on external system state.
125125
When using lookup paths, the same Nix expression can produce different results.
126126

127127
In most cases, `$NIX_PATH` is set to the latest channel when Nix is installed, and is therefore likely to differ from machine to machine.
128128

129129
:::{note}
130-
[Channels](https://nixos.org/manual/nix/stable/command-ref/nix-channel.html) are a mechanism for referencing remote Nix expressions and retrieving their latest version.
130+
[Channels](https://nix.dev/manual/nix/2.17/command-ref/nix-channel.html) are a mechanism for referencing remote Nix expressions and retrieving their latest version.
131131
:::
132132

133133
The state of a subscribed channel is external to the Nix expressions relying on it.
@@ -184,7 +184,7 @@ We skip it in minimal examples reduce distractions.
184184

185185
## Updating nested attribute sets
186186

187-
The [attribute set update operator](https://nixos.org/manual/nix/stable/language/operators.html#update) merges two attribute sets.
187+
The [attribute set update operator](https://nix.dev/manual/nix/2.17/language/operators.html#update) merges two attribute sets.
188188

189189
Example:
190190

@@ -250,7 +250,7 @@ If someone builds the project in a directory with a different name, they will ge
250250
This can be the cause of needless rebuilds.
251251

252252
:::{tip}
253-
Use [`builtins.path`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-path) with the `name` attribute set to something fixed.
253+
Use [`builtins.path`](https://nix.dev/manual/nix/2.17/language/builtins.html#builtins-path) with the `name` attribute set to something fixed.
254254

255255
This will derive the symbolic name of the store path from `name` instead of the working directory:
256256

source/guides/troubleshooting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## What to do if a binary cache is down or unreachable?
44

5-
Pass [`--option substitute false`](https://nixos.org/manual/nix/stable/command-ref/conf-file#conf-substitute) to Nix commands.
5+
Pass [`--option substitute false`](https://nix.dev/manual/nix/2.17/command-ref/conf-file#conf-substitute) to Nix commands.
66

77
### How to fix: `error: querying path in database: database disk image is malformed`
88

@@ -13,7 +13,7 @@ Try:
1313
$ sqlite3 /nix/var/nix/db/db.sqlite "pragma integrity_check"
1414
```
1515

16-
Which will print the errors in the [database](https://nixos.org/manual/nix/stable/glossary#gloss-nix-database).
16+
Which will print the errors in the [database](https://nix.dev/manual/nix/2.17/glossary#gloss-nix-database).
1717
If the errors are due to missing references, the following may work:
1818

1919
```shell-session
@@ -25,7 +25,7 @@ $ sqlite3 /nix/var/nix/db/db.sqlite-bkp ".dump" | sqlite3 /nix/var/nix/db/db.sql
2525

2626
This is a [known issue](https://github.com/NixOS/nix/issues/1251).
2727

28-
It means that using a new version of Nix upgraded the SQLite schema of the [database](https://nixos.org/manual/nix/stable/glossary#gloss-nix-database), and then you tried to use an older version Nix.
28+
It means that using a new version of Nix upgraded the SQLite schema of the [database](https://nix.dev/manual/nix/2.17/glossary#gloss-nix-database), and then you tried to use an older version Nix.
2929

3030
The solution is to dump the database, use the old Nix version to initialize it, and then re-import the data:
3131

@@ -39,6 +39,6 @@ $ nix-store --load-db < /tmp/db.dump
3939

4040
### How to fix: `writing to file: Connection reset by peer`
4141

42-
This may mean you are trying to import a too large file or directory into the [Nix store](https://nixos.org/manual/nix/stable/glossary#gloss-store), or your machine is running out of resources, such as disk space or memory.
42+
This may mean you are trying to import a too large file or directory into the [Nix store](https://nix.dev/manual/nix/2.17/glossary#gloss-store), or your machine is running out of resources, such as disk space or memory.
4343

44-
Try to reduce the size of the directory to import, or run [garbage collection](https://nixos.org/manual/nix/stable/command-ref/nix-collect-garbage).
44+
Try to reduce the size of the directory to import, or run [garbage collection](https://nix.dev/manual/nix/2.17/command-ref/nix-collect-garbage).

source/install-nix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ $ nix --version
8181
nix (Nix) 2.11.0
8282
```
8383

84-
[multi-user installation]: https://nixos.org/manual/nix/stable/installation/multi-user.html
85-
[single-user installation]: https://nixos.org/manual/nix/stable/installation/single-user.html
84+
[multi-user installation]: https://nix.dev/manual/nix/2.17/installation/multi-user.html
85+
[single-user installation]: https://nix.dev/manual/nix/2.17/installation/single-user.html

source/reference/glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Nix language
1616
1717
:::{seealso}
1818
- [](reading-nix-language)
19-
- [Nix language reference](https://nixos.org/manual/nix/stable/language)
19+
- [Nix language reference](https://nix.dev/manual/nix/2.17/language)
2020
:::
2121
2222
Nix expression

source/reference/nix-manual.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
:hidden:
66
77
Nix development (master) <https://hydra.nixos.org/job/nix/master/build.x86_64-linux/latest/download>
8-
Nix 2.18 (latest release) <https://nix.dev/manual/nix/2.18/>
8+
Nix 2.18 (latest release) <https://nix.dev/manual/nix/2.17/>
99
Nix 2.17 (Nixpkgs unstable) <https://nix.dev/manual/nix/2.17/>
10-
Nix 2.13 (NixOS 23.05) <https://nix.dev/manual/nix/2.18/>
10+
Nix 2.13 (NixOS 23.05) <https://nix.dev/manual/nix/2.17/>
1111
```
1212

1313
- [Nix development](https://hydra.nixos.org/job/nix/master/build.x86_64-linux/latest/download)
1414

1515
The latest working build from the `master` branch of the [Nix repository](https://github.com/NixOS/nix)
1616

17-
- [Nix 2.18](https://nix.dev/manual/nix/2.18/)
17+
- [Nix 2.18](https://nix.dev/manual/nix/2.17/)
1818

1919
The latest Nix release
2020

2121
- [Nix 2.17](https://nix.dev/manual/nix/2.17/)
2222

2323
The Nix version shipped with Nixpkgs unstable
2424

25-
- [Nix 2.13 ](https://nix.dev/manual/nix/2.13/)
25+
- [Nix 2.13](https://nix.dev/manual/nix/2.13/)
2626

2727
The Nix version shipped with NixOS 23.05

source/reference/pinning-nixpkgs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Specifying remote Nix expressions, such as the one provided by Nixpkgs, can be done in several ways:
66

7-
- [`$NIX_PATH` environment variable](https://nixos.org/manual/nix/stable/command-ref/env-common.html#env-NIX_PATH)
8-
- [`-I` option](https://nixos.org/manual/nix/stable/command-ref/opt-common.html#opt-I) to most of commands like `nix-build`, `nix-shell`, etc.
9-
- [`fetchurl`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-fetchurl), [`fetchTarball`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-fetchTarball), [`fetchGit`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-fetchGit) or [Nixpkgs fetchers](https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers) in Nix expressions
7+
- [`$NIX_PATH` environment variable](https://nix.dev/manual/nix/2.17/command-ref/env-common.html#env-NIX_PATH)
8+
- [`-I` option](https://nix.dev/manual/nix/2.17/command-ref/opt-common.html#opt-I) to most of commands like `nix-build`, `nix-shell`, etc.
9+
- [`fetchurl`](https://nix.dev/manual/nix/2.17/language/builtins.html#builtins-fetchurl), [`fetchTarball`](https://nix.dev/manual/nix/2.17/language/builtins.html#builtins-fetchTarball), [`fetchGit`](https://nix.dev/manual/nix/2.17/language/builtins.html#builtins-fetchGit) or [Nixpkgs fetchers](https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers) in Nix expressions
1010

1111
## Possible URL values
1212

source/tutorials/first-steps/ad-hoc-shell-environments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ There are three things going on here:
181181

182182
## References
183183

184-
- [Nix manual: `nix-shell`](https://nixos.org/manual/nix/stable/command-ref/nix-shell) (or run `man nix-shell`)
185-
- [Nix manual: `-I` option](https://nixos.org/manual/nix/unstable/command-ref/opt-common.html#opt-I)
184+
- [Nix manual: `nix-shell`](https://nix.dev/manual/nix/2.17/command-ref/nix-shell) (or run `man nix-shell`)
185+
- [Nix manual: `-I` option](https://nix.dev/manual/nix/2.17/command-ref/opt-common.html#opt-I)
186186

187187
## Next steps
188188

0 commit comments

Comments
 (0)