From 77b4b6690010a4db3f4632d0c11644a13fe64c0e Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Sun, 30 Jun 2024 15:04:30 +0000 Subject: [PATCH] docs: fix description of how NIX_PATH / nix-path interact If nix-path is set in nix.conf, the environment variable is always ignored. --- src/libexpr/eval-settings.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libexpr/eval-settings.hh b/src/libexpr/eval-settings.hh index f1fb539bd..aec14b1c5 100644 --- a/src/libexpr/eval-settings.hh +++ b/src/libexpr/eval-settings.hh @@ -49,7 +49,9 @@ struct EvalSettings : Config $NIX_STATE_DIR/profiles/per-user/root/channels ``` - It can be overridden with the [`NIX_PATH` environment variable](@docroot@/command-ref/env-common.md#env-NIX_PATH) or the [`-I` command line option](@docroot@/command-ref/opt-common.md#opt-I). + It can be overridden with the [`-I` command line option](@docroot@/command-ref/opt-common.md#opt-I). + + Due to a bug in Nix versions ≥2.13 and <2.24, `nix-path` overrides the [`NIX_PATH` environment variable](@docroot@/command-ref/env-common.md#env-NIX_PATH) when set. > **Note** >