From a5dd5d5f197724f3065fd39c59c7ccea3c8dcb8f Mon Sep 17 00:00:00 2001 From: rcerc <88944439+rcerc@users.noreply.github.com> Date: Mon, 10 Jan 2022 09:57:17 -0500 Subject: [PATCH] docs: clarify stand-alone installation instructions Specifically, - include system-wide Nixpkgs channel so `NIX_PATH` solution also works on multi-user installations; - additionally link to Nix Discourse reply for more information on `NIX_PATH`; and - remove note about relog on NixOS since all the channels in `~/.nix-defexpr/channels/` are included by default, so the Home Manager channel should be picked up automatically. --- docs/installation.adoc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/installation.adoc b/docs/installation.adoc index 19df6fcab..fe07e416f 100644 --- a/docs/installation.adoc +++ b/docs/installation.adoc @@ -62,14 +62,15 @@ $ nix-channel --add https://github.com/nix-community/home-manager/archive/releas $ nix-channel --update ---- + -On NixOS you may need to log out and back in for the channel to become -available. On non-NixOS you may have to add +On non-NixOS, you may have to add + [source,bash] -export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH +export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH} + -to your shell (see -https://github.com/NixOS/nix/issues/2033[nix#2033]). +to your shell (see https://github.com/NixOS/nix/issues/2033[nix#2033] +and +https://discourse.nixos.org/t/where-is-nix-path-supposed-to-be-set/16434/8[this +reply on the Nix Discourse]). 3. Run the Home Manager installation command and create the first Home Manager generation: