1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-19 17:49:45 +01:00

docs: some extension for flakes users

PR #1655
This commit is contained in:
Vojtěch Káně 2020-12-13 17:25:45 +01:00 committed by Robert Helgesson
parent 118b36bf45
commit 374649a15b
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 19 additions and 2 deletions

View file

@ -113,6 +113,13 @@ Currently the easiest way to install Home Manager is as follows:
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" . "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
``` ```
or this when managing home configuration together with system
configuration
```bash
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
```
to your `~/.profile` file. to your `~/.profile` file.
If instead of using channels you want to run Home Manager from a Git If instead of using channels you want to run Home Manager from a Git
@ -344,6 +351,10 @@ as follows:
Note, the Home Manager library is exported by the flake under Note, the Home Manager library is exported by the flake under
`lib.hm`. `lib.hm`.
When using flakes, switch to new configurations as you do for the
whole system (e. g. `nixos-rebuild switch --flake <path>`) instead of
using the `home-manager` command line tool.
Releases Releases
-------- --------

View file

@ -79,8 +79,14 @@ configuration then you must source the
[source,bash] [source,bash]
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
+ +
file in your shell configuration. Unfortunately, we currently only file in your shell configuration. Alternatively source
support POSIX.2-like shells such as +
[source,bash]
/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh
+
when managing home configuration together with system configuration.
+
Unfortunately, we currently only support POSIX.2-like shells such as
https://www.gnu.org/software/bash/[Bash] or https://www.gnu.org/software/bash/[Bash] or
http://zsh.sourceforge.net/[Z shell]. http://zsh.sourceforge.net/[Z shell].
+ +