From b8089bd262bcadeca106dc87073360886eef42ad Mon Sep 17 00:00:00 2001 From: Christian Demsar Date: Sat, 3 May 2025 01:31:28 -0400 Subject: [PATCH] nixos/config: correct hashedPasswordFile doc `chpasswd -e` accepts entries in the form of: : However, using a value in the above format fails to set the password hash. Using ONLY the generated by `mkpasswd` works as expected. --- nixos/modules/config/users-groups.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index 1eb3e47a46ae..ae3b38683d7f 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -382,8 +382,8 @@ let description = '' The full path to a file that contains the hash of the user's password. The password file is read on each system activation. The - file should contain exactly one line, which should be the password in - an encrypted form that is suitable for the `chpasswd -e` command. + file should contain exactly one line, the salted password hash + produced by `mkpasswd`. ${passwordDescription} '';