nixos/doc: fix to: ~/.nix-defexpr wasn't created, fixes #6606

Changed files
+8
nixos
doc
manual
configuration
+8
nixos/doc/manual/configuration/user-mgmt.xml
···
<screen>
$ useradd -m alice</screen>
The flag <option>-m</option> causes the creation of a home directory
for the new user, which is generally what you want. The user does not
have an initial password and therefore cannot log in. A password can
···
<screen>
$ useradd -m alice</screen>
+
To make all nix tools available to this new user use `su - USER` which
+
opens a login shell (==shell that loads the profile) for given user.
+
This will create the ~/.nix-defexpr symlink. So run:
+
+
<screen>
+
$ su - alice -c "true"</screen>
+
+
The flag <option>-m</option> causes the creation of a home directory
for the new user, which is generally what you want. The user does not
have an initial password and therefore cannot log in. A password can