aboutsummaryrefslogtreecommitdiff
path: root/doc/installation.xml
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 /doc/installation.xml
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 '')
-rw-r--r--doc/installation.xml22
1 files changed, 6 insertions, 16 deletions
diff --git a/doc/installation.xml b/doc/installation.xml
index ef720c606e9..4c5d1f735bb 100644
--- a/doc/installation.xml
+++ b/doc/installation.xml
@@ -44,22 +44,12 @@
<orderedlist>
<listitem>
<para>
- Make sure you have a working Nix installation. If you are not using NixOS
- then it may be necessary to run
- </para>
-<screen>
-<prompt>$</prompt> <userinput>mkdir -m 0755 -p /nix/var/nix/{profiles,gcroots}/per-user/$USER</userinput>
-</screen>
- <para>
- since Home Manager uses these directories to manage your profile
- generations. On NixOS these should already be available.
- </para>
- <para>
- 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
- <literal>nix-instantiate '&lt;nixpkgs&gt;' -A hello</literal> 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
+ 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 <literal>nix-instantiate '&lt;nixpkgs&gt;' -A hello</literal>
+ 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
<link xlink:href="https://nixos.org/nix/manual/#conf-allowed-users"><literal>allowed-users</literal></link>
Nix option. On NixOS you can control this option using the
<link xlink:href="https://nixos.org/nixos/manual/options.html#opt-nix.allowedUsers"><literal>nix.allowedUsers</literal></link>