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.
This commit is contained in:
Robert Helgesson 2017-05-17 23:14:45 +02:00
parent f60a1ed689
commit dfb5bbddf5
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -36,15 +36,23 @@ Installation
Currently the easiest way to install Home Manager is as follows: 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 $ 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` to the `packageOverrides` section in your `~/.nixpkgs/config.nix`
file: 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 $ nix-env -f '<nixpkgs>' -iA home-manager