diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index e7afb5181576..873b6fb424de 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -480,7 +480,7 @@ in { if ! id "${u.name}" &>/dev/null; then ${pkgs.shadow}/sbin/useradd \ -g "${u.group}" \ - -G "${toString u.extraGroups}" \ + -G "${concatStringsSep "," u.extraGroups}" \ -s "${u.shell}" \ -d "${u.home}" \ ${optionalString u.isSystemUser "--system"} \