diff options
author | nikstur <nikstur@outlook.com> | 2023-11-28 01:32:24 +0100 |
---|---|---|
committer | nikstur <nikstur@outlook.com> | 2024-01-18 23:08:14 +0100 |
commit | d4a8fe24c235f63a68b9aeaebeea8b00d6b9f9a7 (patch) | |
tree | 25f48dc3741edd6d71693bc72da71873e4e47eee /nixos/doc/manual/configuration | |
parent | eec1845744299b8be930029c58edde6d58957207 (diff) | |
download | nixlib-d4a8fe24c235f63a68b9aeaebeea8b00d6b9f9a7.tar nixlib-d4a8fe24c235f63a68b9aeaebeea8b00d6b9f9a7.tar.gz nixlib-d4a8fe24c235f63a68b9aeaebeea8b00d6b9f9a7.tar.bz2 nixlib-d4a8fe24c235f63a68b9aeaebeea8b00d6b9f9a7.tar.lz nixlib-d4a8fe24c235f63a68b9aeaebeea8b00d6b9f9a7.tar.xz nixlib-d4a8fe24c235f63a68b9aeaebeea8b00d6b9f9a7.tar.zst nixlib-d4a8fe24c235f63a68b9aeaebeea8b00d6b9f9a7.zip |
nixos/systemd-sysusers: add manual section
Diffstat (limited to 'nixos/doc/manual/configuration')
-rw-r--r-- | nixos/doc/manual/configuration/user-mgmt.chapter.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/doc/manual/configuration/user-mgmt.chapter.md b/nixos/doc/manual/configuration/user-mgmt.chapter.md index b35b38f6e964..71d61ce4c641 100644 --- a/nixos/doc/manual/configuration/user-mgmt.chapter.md +++ b/nixos/doc/manual/configuration/user-mgmt.chapter.md @@ -89,3 +89,18 @@ A user can be deleted using `userdel`: The flag `-r` deletes the user's home directory. Accounts can be modified using `usermod`. Unix groups can be managed using `groupadd`, `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. |