aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2017-05-20 23:39:54 +0200
committerRobert Helgesson <robert@rycee.net>2017-06-03 00:42:37 +0200
commit0aa549f07bf752745e09f3daa09ca5b401c9f003 (patch)
tree76fad28e43ad9a9b95fe40193319bd72ac37dfef /README.md
parent67391395ef5d2103327f35fc9182ff56754842c4 (diff)
home-manager: support `.config` configuration path
This commit changes the default path of the Home Manager configuration file from `~/.nixpkgs/home.nix` to `~/.config/nixpkgs/home.nix`. The old path is still supported and will be used if the `.config` path does not exist. This aligns Home Manager with the preferred configuration directory in NixOS 17.03. Fixes #13.
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index 79fe78ad975..0db0b313224 100644
--- a/README.md
+++ b/README.md
@@ -46,15 +46,16 @@ Currently the easiest way to install Home Manager is as follows:
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:
+2. Clone the Home Manager repository into the `~/.config/nixpkgs`
+ directory:
```
- $ git clone https://github.com/rycee/home-manager ~/.nixpkgs/home-manager
+ $ git clone https://github.com/rycee/home-manager ~/.config/nixpkgs/home-manager
```
3. Add Home Manager to your user's Nixpkgs, for example by adding it
- to the `packageOverrides` section in your `~/.nixpkgs/config.nix`
- file:
+ to the `packageOverrides` section in your
+ `~/.config/nixpkgs/config.nix` file:
```nix
{
@@ -84,7 +85,7 @@ the htop and fortune packages, installs Emacs with a few extra
packages enabled, installs Firefox with Adobe Flash enabled, and
enables the user gpg-agent service.
-First create a file `~/.nixpkgs/home.nix` containing
+First create a file `~/.config/nixpkgs/home.nix` containing
```nix
{ pkgs, ... }: