about summary refs log tree commit diff
path: root/nixos/doc/manual/configuration/user-mgmt.xml
diff options
context:
space:
mode:
authorRovanion Luckey <rovanion.luckey@gmail.com>2017-11-22 17:46:22 +0100
committerRovanion Luckey <rovanion.luckey@gmail.com>2017-11-23 10:22:00 +0100
commit99864c4a795e2857e2a5e675fe7f273a7310ad6b (patch)
treeea4ab156fcaaa50dbd4c9d43f5777ee7c035edee /nixos/doc/manual/configuration/user-mgmt.xml
parente0779e6aed6f1d1ebd6e99ff2679ad1f247309b4 (diff)
downloadnixlib-99864c4a795e2857e2a5e675fe7f273a7310ad6b.tar
nixlib-99864c4a795e2857e2a5e675fe7f273a7310ad6b.tar.gz
nixlib-99864c4a795e2857e2a5e675fe7f273a7310ad6b.tar.bz2
nixlib-99864c4a795e2857e2a5e675fe7f273a7310ad6b.tar.lz
nixlib-99864c4a795e2857e2a5e675fe7f273a7310ad6b.tar.xz
nixlib-99864c4a795e2857e2a5e675fe7f273a7310ad6b.tar.zst
nixlib-99864c4a795e2857e2a5e675fe7f273a7310ad6b.zip
nixos/manual: extraUsers -> users in user-mgmt.xml
Changed extraUsers -> users and one case of extraGroups -> groups in nixos manual chapter 7.

According to chatter on IRC these are the proper names for these configuration options nowadays.

Modified based on feedback from Jörg Talheim.
Diffstat (limited to 'nixos/doc/manual/configuration/user-mgmt.xml')
-rw-r--r--nixos/doc/manual/configuration/user-mgmt.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/doc/manual/configuration/user-mgmt.xml b/nixos/doc/manual/configuration/user-mgmt.xml
index 2bd9cca5622f..c6656edff6c8 100644
--- a/nixos/doc/manual/configuration/user-mgmt.xml
+++ b/nixos/doc/manual/configuration/user-mgmt.xml
@@ -12,7 +12,7 @@ management.  In the declarative style, users are specified in
 states that a user account named <literal>alice</literal> shall exist:
 
 <programlisting>
-users.extraUsers.alice =
+users.users.alice =
   { isNormalUser = true;
     home = "/home/alice";
     description = "Alice Foobar";
@@ -34,7 +34,7 @@ to set a password, which is retained across invocations of
 
 <para>If you set users.mutableUsers to false, then the contents of /etc/passwd
 and /etc/group will be congruent to your NixOS configuration. For instance,
-if you remove a user from users.extraUsers and run nixos-rebuild, the user
+if you remove a user from users.users and run nixos-rebuild, the user
 account will cease to exist. Also, imperative commands for managing users
 and groups, such as useradd, are no longer available. Passwords may still be
 assigned by setting the user's <literal>hashedPassword</literal> option. A
@@ -54,7 +54,7 @@ to the user specification.</para>
 group named <literal>students</literal> shall exist:
 
 <programlisting>
-users.extraGroups.students.gid = 1000;
+users.groups.students.gid = 1000;
 </programlisting>
 
 As with users, the group ID (gid) is optional and will be assigned
@@ -68,8 +68,8 @@ 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. 
+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>