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.
This commit is contained in:
parent
85f13acb81
commit
a5dd5d5f19
|
@ -62,14 +62,15 @@ $ nix-channel --add https://github.com/nix-community/home-manager/archive/releas
|
||||||
$ nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
+
|
+
|
||||||
On NixOS you may need to log out and back in for the channel to become
|
On non-NixOS, you may have to add
|
||||||
available. On non-NixOS you may have to add
|
|
||||||
+
|
+
|
||||||
[source,bash]
|
[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
|
to your shell (see https://github.com/NixOS/nix/issues/2033[nix#2033]
|
||||||
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
|
3. Run the Home Manager installation command and create the first Home
|
||||||
Manager generation:
|
Manager generation:
|
||||||
|
|
Loading…
Reference in a new issue