From f6c6c6203fe698613cdd5dd9d91cc00935ca95be Mon Sep 17 00:00:00 2001 From: Kaleb Olson Date: Wed, 31 Jul 2024 21:44:27 -0500 Subject: [PATCH] Set literal NIX_PATH in 'other distro' docs Setting `NIX_PATH="$NIX_PATH"` doesn't work in this context. As of NixOS/nix@ec9dd9a , nix is no longer setting NIX_PATH on non-nixOS distros. --- .../manual/installation/installing-from-other-distro.section.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/doc/manual/installation/installing-from-other-distro.section.md b/nixos/doc/manual/installation/installing-from-other-distro.section.md index 38f0e5301472..c52a8a3125c5 100644 --- a/nixos/doc/manual/installation/installing-from-other-distro.section.md +++ b/nixos/doc/manual/installation/installing-from-other-distro.section.md @@ -125,7 +125,7 @@ The first steps to all these are the same: ::: ```ShellSession - $ sudo PATH="$PATH" NIX_PATH="$NIX_PATH" `which nixos-install` --root /mnt + $ sudo PATH="$PATH" NIX_PATH="$HOME/.nix-defexpr/channels" `which nixos-install` --root /mnt ``` Again, please refer to the `nixos-install` step in