mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixos/systemd-sysusers: add manual section
This commit is contained in:
parent
eec1845744
commit
d4a8fe24c2
1 changed files with 15 additions and 0 deletions
|
@ -89,3 +89,18 @@ A user can be deleted using `userdel`:
|
||||||
The flag `-r` deletes the user's home directory. Accounts can be
|
The flag `-r` deletes the user's home directory. Accounts can be
|
||||||
modified using `usermod`. Unix groups can be managed using `groupadd`,
|
modified using `usermod`. Unix groups can be managed using `groupadd`,
|
||||||
`groupmod` and `groupdel`.
|
`groupmod` and `groupdel`.
|
||||||
|
|
||||||
|
## Create users and groups with `systemd-sysusers` {#sec-systemd-sysusers}
|
||||||
|
|
||||||
|
::: {.note}
|
||||||
|
This is experimental.
|
||||||
|
:::
|
||||||
|
|
||||||
|
Instead of using a custom perl script to create users and groups, you can use
|
||||||
|
systemd-sysusers:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
systemd.sysusers.enable = true;
|
||||||
|
```
|
||||||
|
|
||||||
|
The primary benefit of this is to remove a dependency on perl.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue