diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index d1e9c8072eac..4640a0f3d6be 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -652,7 +652,7 @@ in { deps = [ "users" ]; text = '' users=() - while IFS=: read -r user hash tail; do + while IFS=: read -r user hash _; do if [[ "$hash" = "$"* && ! "$hash" =~ ^\''$${cryptSchemeIdPatternGroup}\$ ]]; then users+=("$user") fi