But it naturally complains about infinite recursion. So I thought a proper way of doing this would be to change the defaults of hashedPasswordFile option in the standard user-groups module. However it uses a submodule for every user and the option looks like this: users.users.<name>.hashedPasswordFile. How do I go about it?
tldr; How to change the defaults of users.users.<name>.hashedPasswordFile?
Multiple declarations of the same option should get merged.
Completely untested, though.
Also I don’t know how well this will play with root or system users overall - maybe add a check for isNormalUser?