aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2020-05-16 18:09:09 +0200
committerRobert Helgesson <robert@rycee.net>2020-05-16 19:17:13 +0200
commit9ec9f004e1e5b390cdb4a6949bc852d468b30f48 (patch)
tree0a72cc7c81a3d75bfa4c17df5ed1423371ee4e48 /README.md
parent0fe984d575b2d0b65cd5e639eb1ccaab21d0862d (diff)
home-manager: use `nix-env` to list generations
Using the `nix-env` command is far more robust. It also has the benefit that if the per-user `profiles` and `gcroots` directories do not exist then they will be created with the correct permissions. Because of the second point this commit also removes the `mkdir` step of the installation instructions. PR #1239 Closes #474, #948, #1091
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 6 insertions, 15 deletions
diff --git a/README.md b/README.md
index ee41290847c..905bd09ea94 100644
--- a/README.md
+++ b/README.md
@@ -46,21 +46,12 @@ Installation
Currently the easiest way to install Home Manager is as follows:
-1. Make sure you have a working Nix installation. If you are not
- using NixOS then you may here have to run
-
- ```console
- $ mkdir -m 0755 -p /nix/var/nix/{profiles,gcroots}/per-user/$USER
- ```
-
- since Home Manager uses these directories to manage your profile
- generations. On NixOS these should already be available.
-
- Also make sure that your user is able to build and install Nix
- packages. For example, you should be able to successfully run a
- command like `nix-instantiate '<nixpkgs>' -A hello` without having
- to switch to the root user. For a multi-user install of Nix this
- means that your user must be covered by the
+1. Make sure you have a working Nix installation. Specifically, make
+ sure that your user is able to build and install Nix packages. For
+ example, you should be able to successfully run a command like
+ `nix-instantiate '<nixpkgs>' -A hello` without having to switch to
+ the root user. For a multi-user install of Nix this means that
+ your user must be covered by the
[`allowed-users`][nixAllowedUsers] Nix option. On NixOS you can
control this option using the
[`nix.allowedUsers`][nixosAllowedUsers] system option.