Fix users.*.extraGroups for users.mutableUsers = true.

(cherry picked from commit eb222923054fdc895ab73ff5d0260c1e1fc689c7)
This commit is contained in:
Rob Vermaas 2014-05-05 15:34:36 +02:00
parent 9aa231abfa
commit d056d1d37b

View File

@ -480,6 +480,7 @@ in {
if ! id "${u.name}" &>/dev/null; then
${pkgs.shadow}/sbin/useradd \
-g "${u.group}" \
-G "${toString u.extraGroups}" \
-s "${u.shell}" \
-d "${u.home}" \
${optionalString u.isSystemUser "--system"} \