Browse Source

Add overlay and instructions for using it

keep-around/356c0bf751a55878c448461d8ef1d17f43911acd
Linus Heckemann 2 years ago
parent
commit
34428fc709
No account linked to committer's email address
3 changed files with 10 additions and 12 deletions
  1. 5
    10
      README.md
  2. 2
    2
      modules/programs/home-manager.nix
  3. 3
    0
      overlay.nix

+ 5
- 10
README.md View File

@@ -62,16 +62,11 @@ Currently the easiest way to install Home Manager is as follows:
depending on whether you are tracking Nixpkgs unstable or version
17.03.

3. Add Home Manager to your user's Nixpkgs, for example by adding it
to the `packageOverrides` section in your
`~/.config/nixpkgs/config.nix` file:

```nix
{
packageOverrides = pkgs: rec {
home-manager = import ./home-manager { inherit pkgs; };
};
}
3. Add Home Manager to your user's Nixpkgs, for example by symlinking the
overlay to `~/.config/nixpkgs/overlays`:

```console
$ ln -s ~/.config/nixpkgs/home-manager/overlay.nix ~/.config/nixpkgs/overlays/home-manager.nix
```

4. Install the `home-manager` package:

+ 2
- 2
modules/programs/home-manager.nix View File

@@ -46,8 +46,8 @@ in
if nix-env -q | grep -q '^home-manager$' ; then
$DRY_RUN_CMD nix-env -e home-manager

echo "You can now remove the 'home-manager' entry in"
echo "'~/.config/nixpkgs/config.nix', if you want."
echo "You can now remove the 'home-manager' packageOverride"
echo "or overlay in '~/.config/nixpkgs/', if you want."
fi
'';
};

+ 3
- 0
overlay.nix View File

@@ -0,0 +1,3 @@
self: super: {
home-manager = import ./home-manager { pkgs = super; };
}

Loading…
Cancel
Save