From 5692c926f2733a4e53794b3ec1db00e57ce0d925 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Sun, 7 Jun 2026 17:23:48 +0300 Subject: [PATCH] nixos/users-groups: drop the weak-hash activation warning The libxcrypt transition was in 23.05, so I think we've given people sufficient time to fix hashes of mutable users. Part of #475305. --- nixos/modules/config/users-groups.nix | 28 ++------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index 8291f55f37cb..c92872d26775 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -950,32 +950,8 @@ in }; }; - # Warn about user accounts with deprecated password hashing schemes - # This does not work when the users and groups are created by - # systemd-sysusers because the users are created too late then. - system.activationScripts.hashes = - if !config.systemd.sysusers.enable && !config.services.userborn.enable then - { - deps = [ "users" ]; - text = '' - users=() - while IFS=: read -r user hash _; do - if [[ "$hash" = "$"* && ! "$hash" =~ ^\''$${cryptSchemeIdPatternGroup}\$ ]]; then - users+=("$user") - fi - done