Skip to content

Commit

Permalink
docs: some extension for flakes users
Browse files Browse the repository at this point in the history
  • Loading branch information
vojta001 authored and rycee committed Dec 31, 2020
1 parent 118b36b commit 374649a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

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.

If instead of using channels you want to run Home Manager from a Git
Expand Down Expand Up @@ -344,6 +351,10 @@ as follows:
Note, the Home Manager library is exported by the flake under
`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
--------

Expand Down
10 changes: 8 additions & 2 deletions doc/installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,14 @@ configuration then you must source the
[source,bash]
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
+
file in your shell configuration. Unfortunately, we currently only
support POSIX.2-like shells such as
file in your shell configuration. Alternatively source
+
[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
http://zsh.sourceforge.net/[Z shell].
+
Expand Down

0 comments on commit 374649a

Please sign in to comment.