Revert "modules.user: check that at least one of hashedPasswordFile or hashedPassword is set"

This reverts commit 411411d0af.
This commit is contained in:
2025-07-04 12:54:51 +08:00
parent 411411d0af
commit 3d434264b9

View File

@@ -114,17 +114,6 @@ inputs:
(builtins.filter (user: hashedPasswordExist user) user.users));
}
)
# assert at least hashedPasswordFile or hashedPassword is set
{
assertions = builtins.map
(user:
{
assertion =
let u = inputs.config.users.users.${user}; in u.hashedPasswordFile != null || u.hashedPassword != null;
message = "User '${user}' must have either 'hashedPasswordFile' or 'hashedPassword' set.";
})
inputs.config.nixos.user.users;
}
# setup root
{
users.users.root =