git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/users-groups: do not check validity of empty hashes
751c2edrnhmjoj
nixos/modules/config/users-groups.nix+2−1
@@ -629,7 +629,8 @@ in {
629 content = "${base64}${sep}${base64}";
629 content = "${base64}${sep}${base64}";
630 mcf = "^${sep}${scheme}${sep}${content}$";
630 mcf = "^${sep}${scheme}${sep}${content}$";
631 in
631 in
632− if (user.hashedPassword != null
632+ if (user.hashedPassword != null # login disabled
633+ && user.hashedPassword != "" # login without password
633 && builtins.match mcf user.hashedPassword == null)
634 && builtins.match mcf user.hashedPassword == null)
634 then
635 then
635 ''
636 ''