diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2014-05-05 15:34:36 +0200 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2014-05-05 15:35:16 +0200 |
commit | d056d1d37b4c08dffadaea4d5f38a2dc8a7469fa (patch) | |
tree | ba70a23a27d47b558a39698ef587c0132a83f1cb /nixos/modules/config/users-groups.nix | |
parent | 9aa231abfafed902b7a04f28275af6e04460715f (diff) |
Fix users.*.extraGroups for users.mutableUsers = true.
(cherry picked from commit eb222923054fdc895ab73ff5d0260c1e1fc689c7)
Diffstat (limited to 'nixos/modules/config/users-groups.nix')
-rw-r--r-- | nixos/modules/config/users-groups.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index 7daab98f7be6..2c37dccd6ce1 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -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"} \ |