summary refs log tree commit diff
path: root/nixos/doc/manual/configuration
diff options
context:
space:
mode:
authorJoachim Schiele <js@lastlog.de>2015-02-28 15:30:06 +0100
committerRok Garbas <rok@garbas.si>2016-01-20 04:59:16 +0100
commit2a88417f033cd9ac656a75e1f5734895f8a247d5 (patch)
tree72378d6b27dc8d71b107f7eebf2544e4f3850737 /nixos/doc/manual/configuration
parent95db340fd0b0d2710285846cc682156f9aa6c8ab (diff)
downloadnixpkgs-2a88417f033cd9ac656a75e1f5734895f8a247d5.tar
nixpkgs-2a88417f033cd9ac656a75e1f5734895f8a247d5.tar.gz
nixpkgs-2a88417f033cd9ac656a75e1f5734895f8a247d5.tar.bz2
nixpkgs-2a88417f033cd9ac656a75e1f5734895f8a247d5.tar.lz
nixpkgs-2a88417f033cd9ac656a75e1f5734895f8a247d5.tar.xz
nixpkgs-2a88417f033cd9ac656a75e1f5734895f8a247d5.tar.zst
nixpkgs-2a88417f033cd9ac656a75e1f5734895f8a247d5.zip
nixos/doc: fix to: ~/.nix-defexpr wasn't created, fixes #6606
Diffstat (limited to 'nixos/doc/manual/configuration')
-rw-r--r--nixos/doc/manual/configuration/user-mgmt.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/doc/manual/configuration/user-mgmt.xml b/nixos/doc/manual/configuration/user-mgmt.xml
index 40362fbbb23..63174205927 100644
--- a/nixos/doc/manual/configuration/user-mgmt.xml
+++ b/nixos/doc/manual/configuration/user-mgmt.xml
@@ -65,6 +65,14 @@ account named <literal>alice</literal>:
 <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