From fee04927a46a8c2368225486ef9df17bea270b92 Mon Sep 17 00:00:00 2001 From: Ryan Mulligan Date: Sun, 10 Aug 2014 08:39:31 -0700 Subject: [PATCH] add note about mutableUsers to user management section --- nixos/doc/manual/configuration.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/doc/manual/configuration.xml b/nixos/doc/manual/configuration.xml index 051f0fb8c1e0..bbfb434782d0 100644 --- a/nixos/doc/manual/configuration.xml +++ b/nixos/doc/manual/configuration.xml @@ -1053,6 +1053,12 @@ a password. However, you can use the passwd program to set a password, which is retained across invocations of nixos-rebuild. +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 +account will cease to exist. Also, imperative commands for managing users +and groups, such as useradd, are no longer available. + A user ID (uid) is assigned automatically. You can also specify a uid manually by adding