aboutsummaryrefslogtreecommitdiff
path: root/src/nix/upgrade-nix.md
diff options
context:
space:
mode:
authorChris Wögi <789@c-w.li>2022-06-01 16:33:03 +0200
committercw789 <789@webuhu.at>2022-06-02 15:05:27 +0200
commit51b3cc151eb479d9c59e45b5de78dee191354717 (patch)
tree06aa8719b0c0d203ef3d03cc09991d36298de0c8 /src/nix/upgrade-nix.md
parent078c80f7500edd3adc3be5f7fb2801ba346c1d81 (diff)
Explain exactly what nix-upgrade nix does
Diffstat (limited to 'src/nix/upgrade-nix.md')
-rw-r--r--src/nix/upgrade-nix.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nix/upgrade-nix.md b/src/nix/upgrade-nix.md
index 4d27daad9..084c80ba2 100644
--- a/src/nix/upgrade-nix.md
+++ b/src/nix/upgrade-nix.md
@@ -2,7 +2,7 @@ R""(
# Examples
-* Upgrade Nix to the latest stable version:
+* Upgrade Nix to the stable version declared in Nixpkgs:
```console
# nix upgrade-nix
@@ -16,8 +16,11 @@ R""(
# Description
-This command upgrades Nix to the latest version. By default, it
-locates the directory containing the `nix` binary in the `$PATH`
+This command upgrades Nix to the stable version declared in Nixpkgs.
+This stable version is defined in [nix-fallback-paths.nix](https://github.com/NixOS/nixpkgs/raw/master/nixos/modules/installer/tools/nix-fallback-paths.nix)
+and updated manually. It may not always be the latest tagged release.
+
+By default, it locates the directory containing the `nix` binary in the `$PATH`
environment variable. If that directory is a Nix profile, it will
upgrade the `nix` package in that profile to the latest stable binary
release.