diff options
author | Robert Helgesson <robert@rycee.net> | 2017-05-20 23:39:54 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-06-03 00:42:37 +0200 |
commit | 0aa549f07bf752745e09f3daa09ca5b401c9f003 (patch) | |
tree | 76fad28e43ad9a9b95fe40193319bd72ac37dfef /README.md | |
parent | 67391395ef5d2103327f35fc9182ff56754842c4 (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 '')
-rw-r--r-- | README.md | 11 |
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, ... }: |