nixos/shadow: Set default encrypt method

Fixes the default for tools like chpasswd, chgpasswd and gpasswd.

Closes: #230880

Changed files
+2
nixos
modules
programs
+2
nixos/modules/programs/shadow.nix
···
# This should be made configurable.
#CHFN_RESTRICT frwh
+
# The default crypt() method, keep in sync with the PAM default
+
ENCRYPT_METHOD YESCRYPT
'';
mkSetuidRoot = source: