From 2a88417f033cd9ac656a75e1f5734895f8a247d5 Mon Sep 17 00:00:00 2001 From: Joachim Schiele Date: Sat, 28 Feb 2015 15:30:06 +0100 Subject: [PATCH] nixos/doc: fix to: ~/.nix-defexpr wasn't created, fixes #6606 --- nixos/doc/manual/configuration/user-mgmt.xml | 8 ++++++++ 1 file changed, 8 insertions(+) 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 alice: $ useradd -m alice +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: + + +$ su - alice -c "true" + + The flag 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