@@ -25,6 +25,11 @@ let
2525 options.
2626 '';
2727
28+ hashedPasswordDescription = ''
29+ To generate hashed password install <literal>mkpassword</literal>
30+ package and run <literal>mkpasswd -m sha-512</literal>.
31+ '';
32+
2833 userOpts = { name, config, ... }: {
2934
3035 options = {
@@ -165,6 +170,7 @@ let
165170 description = ''
166171 Specifies the hashed password for the user.
167172 ${passwordDescription}
173+ ${hashedPasswordDescription}
168174 '';
169175 };
170176
@@ -202,6 +208,8 @@ let
202208 password can be changed subsequently using the
203209 <command>passwd</command> command. Otherwise, it's
204210 equivalent to setting the <option>password</option> option.
211+
212+ ${hashedPasswordDescription}
205213 '';
206214 };
207215
@@ -366,21 +374,24 @@ in {
366374 type = types.bool;
367375 default = true;
368376 description = ''
369− If true, you are free to add new users and groups to the system
377+ If set to <literal>true</literal>, you are free to add new users and groups to the system
370378 with the ordinary <literal>useradd</literal> and
371379 <literal>groupadd</literal> commands. On system activation, the
372380 existing contents of the <literal>/etc/passwd</literal> and
373381 <literal>/etc/group</literal> files will be merged with the
374382 contents generated from the <literal>users.extraUsers</literal> and
375− <literal>users.extraGroups</literal> options. If
376− <literal>mutableUsers</literal> is false, the contents of the user and
377− group files will simply be replaced on system activation. This also
378− holds for the user passwords; if this option is false, all changed
379− passwords will be reset according to the
380− <literal>users.extraUsers</literal> configuration on activation. If
381− this option is true, the initial password for a user will be set
383+ <literal>users.extraGroups</literal> options.
384+ The initial password for a user will be set
382385 according to <literal>users.extraUsers</literal>, but existing passwords
383386 will not be changed.
387+
388+ <warning>
389+ If set to <literal>false</literal>, the contents of the user and
390+ group files will simply be replaced on system activation. This also
391+ holds for the user passwords; all changed
392+ passwords will be reset according to the
393+ <literal>users.extraUsers</literal> configuration on activation.
394+ </warning>
384395 '';
385396 };
386397