From 235a6617c46b4267d4f67cde9a93dbef0f12bd3f Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 23 Dec 2018 10:47:12 +0100 Subject: [PATCH] readme: add notice that relog may be needed Also add instructions for non-NixOS users to add the user channel directory to `NIX_PATH`. --- README.md | 9 +++++++++ doc/installation.xml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 856eab5e..2386829f 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,15 @@ Currently the easiest way to install Home Manager is as follows: if you follow a Nixpkgs version 18.09 channel. + 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 + + ```shell + export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH + ``` + + to your shell (see [nix#2033](https://github.com/NixOS/nix/issues/2033)). + 3. Install Home Manager and create the first Home Manager generation: ```console diff --git a/doc/installation.xml b/doc/installation.xml index 53294755..ea3c49fa 100644 --- a/doc/installation.xml +++ b/doc/installation.xml @@ -85,6 +85,15 @@ $ nix-channel --update if you follow a Nixpkgs version 18.09 channel. + + 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 + +export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH + + to your shell (see + nix#2033). +