mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
Add overlay and instructions for using it
This commit is contained in:
parent
393274d142
commit
34428fc709
3 changed files with 9 additions and 11 deletions
13
README.md
13
README.md
|
@ -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
|
depending on whether you are tracking Nixpkgs unstable or version
|
||||||
17.03.
|
17.03.
|
||||||
|
|
||||||
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 symlinking the
|
||||||
to the `packageOverrides` section in your
|
overlay to `~/.config/nixpkgs/overlays`:
|
||||||
`~/.config/nixpkgs/config.nix` file:
|
|
||||||
|
|
||||||
```nix
|
```console
|
||||||
{
|
$ ln -s ~/.config/nixpkgs/home-manager/overlay.nix ~/.config/nixpkgs/overlays/home-manager.nix
|
||||||
packageOverrides = pkgs: rec {
|
|
||||||
home-manager = import ./home-manager { inherit pkgs; };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Install the `home-manager` package:
|
4. Install the `home-manager` package:
|
||||||
|
|
|
@ -46,8 +46,8 @@ in
|
||||||
if nix-env -q | grep -q '^home-manager$' ; then
|
if nix-env -q | grep -q '^home-manager$' ; then
|
||||||
$DRY_RUN_CMD nix-env -e home-manager
|
$DRY_RUN_CMD nix-env -e home-manager
|
||||||
|
|
||||||
echo "You can now remove the 'home-manager' entry in"
|
echo "You can now remove the 'home-manager' packageOverride"
|
||||||
echo "'~/.config/nixpkgs/config.nix', if you want."
|
echo "or overlay in '~/.config/nixpkgs/', if you want."
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
3
overlay.nix
Normal file
3
overlay.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
self: super: {
|
||||||
|
home-manager = import ./home-manager { pkgs = super; };
|
||||||
|
}
|
Loading…
Reference in a new issue