forked from mirrors/nixpkgs
Fix users.*.extraGroups for users.mutableUsers = true.
(cherry picked from commit eb22292305
)
This commit is contained in:
parent
9aa231abfa
commit
d056d1d37b
|
@ -480,6 +480,7 @@ in {
|
||||||
if ! id "${u.name}" &>/dev/null; then
|
if ! id "${u.name}" &>/dev/null; then
|
||||||
${pkgs.shadow}/sbin/useradd \
|
${pkgs.shadow}/sbin/useradd \
|
||||||
-g "${u.group}" \
|
-g "${u.group}" \
|
||||||
|
-G "${toString u.extraGroups}" \
|
||||||
-s "${u.shell}" \
|
-s "${u.shell}" \
|
||||||
-d "${u.home}" \
|
-d "${u.home}" \
|
||||||
${optionalString u.isSystemUser "--system"} \
|
${optionalString u.isSystemUser "--system"} \
|
||||||
|
|
Loading…
Reference in a new issue