···1717 ]);
18181919 passwordDescription = ''
2020- The options <option>hashedPassword</option>,
2121- <option>password</option> and <option>passwordFile</option>
2020+ The options {option}`hashedPassword`,
2121+ {option}`password` and {option}`passwordFile`
2222 controls what password is set for the user.
2323- <option>hashedPassword</option> overrides both
2424- <option>password</option> and <option>passwordFile</option>.
2525- <option>password</option> overrides <option>passwordFile</option>.
2323+ {option}`hashedPassword` overrides both
2424+ {option}`password` and {option}`passwordFile`.
2525+ {option}`password` overrides {option}`passwordFile`.
2626 If none of these three options are set, no password is assigned to
2727 the user, and the user will not be able to do password logins.
2828- If the option <option>users.mutableUsers</option> is true, the
2828+ If the option {option}`users.mutableUsers` is true, the
2929 password defined in one of the three options will only be set when
3030 the user is created for the first time. After that, you are free to
3131 change the password with the ordinary user management commands. If
3232- <option>users.mutableUsers</option> is false, you cannot change
3232+ {option}`users.mutableUsers` is false, you cannot change
3333 user passwords, they will always be set according to the password
3434 options.
3535 '';
36363737 hashedPasswordDescription = ''
3838- To generate a hashed password run <literal>mkpasswd -m sha-512</literal>.
3838+ To generate a hashed password run `mkpasswd -m sha-512`.
39394040- If set to an empty string (<literal>""</literal>), this user will
4040+ If set to an empty string (`""`), this user will
4141 be able to log in without being asked for a password (but not via remote
4242- services such as SSH, or indirectly via <command>su</command> or
4343- <command>sudo</command>). This should only be used for e.g. bootable
4242+ services such as SSH, or indirectly via {command}`su` or
4343+ {command}`sudo`). This should only be used for e.g. bootable
4444 live systems. Note: this is different from setting an empty password,
4545- which can be achieved using <option>users.users.<name?>.password</option>.
4545+ which can be achieved using {option}`users.users.<name?>.password`.
46464747- If set to <literal>null</literal> (default) this user will not
4848- be able to log in using a password (i.e. via <command>login</command>
4747+ If set to `null` (default) this user will not
4848+ be able to log in using a password (i.e. via {command}`login`
4949 command).
5050 '';
5151···234234 hashedPassword = mkOption {
235235 type = with types; nullOr (passwdEntry str);
236236 default = null;
237237- description = ''
237237+ description = lib.mdDoc ''
238238 Specifies the hashed password for the user.
239239 ${passwordDescription}
240240 ${hashedPasswordDescription}
···244244 password = mkOption {
245245 type = with types; nullOr str;
246246 default = null;
247247- description = ''
247247+ description = lib.mdDoc ''
248248 Specifies the (clear text) password for the user.
249249 Warning: do not set confidential information here
250250 because it is world-readable in the Nix store. This option
···256256 passwordFile = mkOption {
257257 type = with types; nullOr str;
258258 default = null;
259259- description = ''
259259+ description = lib.mdDoc ''
260260 The full path to a file that contains the user's password. The password
261261 file is read on each system activation. The file should contain
262262 exactly one line, which should be the password in an encrypted form
263263- that is suitable for the <literal>chpasswd -e</literal> command.
263263+ that is suitable for the `chpasswd -e` command.
264264 ${passwordDescription}
265265 '';
266266 };
···268268 initialHashedPassword = mkOption {
269269 type = with types; nullOr (passwdEntry str);
270270 default = null;
271271- description = ''
271271+ description = lib.mdDoc ''
272272 Specifies the initial hashed password for the user, i.e. the
273273 hashed password assigned if the user does not already
274274- exist. If <option>users.mutableUsers</option> is true, the
274274+ exist. If {option}`users.mutableUsers` is true, the
275275 password can be changed subsequently using the
276276- <command>passwd</command> command. Otherwise, it's
277277- equivalent to setting the <option>hashedPassword</option> option.
276276+ {command}`passwd` command. Otherwise, it's
277277+ equivalent to setting the {option}`hashedPassword` option.
278278279279 ${hashedPasswordDescription}
280280 '';
···458458 users.mutableUsers = mkOption {
459459 type = types.bool;
460460 default = true;
461461- description = ''
462462- If set to <literal>true</literal>, you are free to add new users and groups to the system
463463- with the ordinary <literal>useradd</literal> and
464464- <literal>groupadd</literal> commands. On system activation, the
465465- existing contents of the <literal>/etc/passwd</literal> and
466466- <literal>/etc/group</literal> files will be merged with the
467467- contents generated from the <literal>users.users</literal> and
468468- <literal>users.groups</literal> options.
461461+ description = lib.mdDoc ''
462462+ If set to `true`, you are free to add new users and groups to the system
463463+ with the ordinary `useradd` and
464464+ `groupadd` commands. On system activation, the
465465+ existing contents of the `/etc/passwd` and
466466+ `/etc/group` files will be merged with the
467467+ contents generated from the `users.users` and
468468+ `users.groups` options.
469469 The initial password for a user will be set
470470- according to <literal>users.users</literal>, but existing passwords
470470+ according to `users.users`, but existing passwords
471471 will not be changed.
472472473473- <warning><para>
474474- If set to <literal>false</literal>, the contents of the user and
473473+ ::: {.warning}
474474+ If set to `false`, the contents of the user and
475475 group files will simply be replaced on system activation. This also
476476 holds for the user passwords; all changed
477477 passwords will be reset according to the
478478- <literal>users.users</literal> configuration on activation.
479479- </para></warning>
478478+ `users.users` configuration on activation.
479479+ :::
480480 '';
481481 };
482482