From dfb5bbddf571f0035a1a4559d4ad939b0491da0b Mon Sep 17 00:00:00 2001
From: Robert Helgesson <robert@rycee.net>
Date: Wed, 17 May 2017 23:14:45 +0200
Subject: [PATCH] Expand installation instructions slightly

In particular, mention that non-NixOS users may have to create the
per-user `profiles` and `gcroots` directories.

Also reformat the list a little.
---
 README.md | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index b339cde33..1c5be4353 100644
--- a/README.md
+++ b/README.md
@@ -36,15 +36,23 @@ Installation
 
 Currently the easiest way to install Home Manager is as follows:
 
- 1. Make sure you have a working Nix installation.
+1.  Make sure you have a working Nix installation. If you are not
+    using NixOS then you may here have to run
 
- 2. Clone the Home Manager repository into the `~/.nixpkgs` directory:
+    ```
+    $ mkdir -m 0755 -p /nix/var/nix/{profiles,gcroots}/per-user/$USER
+    ```
+
+    since Home Manager uses these directories to manage your profile
+    generations. On NixOS these should already be available.
+
+2.  Clone the Home Manager repository into the `~/.nixpkgs` directory:
 
     ```
     $ git clone https://github.com/rycee/home-manager ~/.nixpkgs/home-manager
     ```
 
- 3. Add Home Manager to your user's Nixpkgs, for example by adding it
+3.  Add Home Manager to your user's Nixpkgs, for example by adding it
     to the `packageOverrides` section in your `~/.nixpkgs/config.nix`
     file:
 
@@ -56,7 +64,7 @@ Currently the easiest way to install Home Manager is as follows:
     }
     ```
 
- 4. Install the `home-manager` package:
+4.  Install the `home-manager` package:
 
     ```
     $ nix-env -f '<nixpkgs>' -iA home-manager