feat: update user's initialHashedPassword

This commit is contained in:
Ryan Yin
2024-01-26 20:18:33 +08:00
parent c02590c07a
commit d1cdddc9ca

View File

@@ -22,7 +22,7 @@
users.users."${username}" = {
# generated by `mkpasswd -m scrypt`
# we have to use initialHashedPassword here when using tmpfs for /
initialHashedPassword = "$7$CU..../....Sdl/JRH..9eIvZ6mE/52r.$xeR6lyvTcVVKt28Owcoc/vPOOECcYSiq1xjw/QCz2t0";
initialHashedPassword = "$7$CU..../....KDvTIXqLTXpmCaoUy2yC9.$145eM358b7Q0sRXgEBvxctd5EAuEEdao57LmZjc05D.";
home = "/home/${username}";
isNormalUser = true;
extraGroups = [
@@ -37,7 +37,7 @@
];
};
users.users.root = {
initialHashedPassword = "$7$CU..../....X6uvZYnFD.i1CqqFFNl4./$4vgqzIPyw5XBr0aCDFbY/UIRRJr7h5SMGoQ/ZvX3FP2";
initialHashedPassword = config.users.users."${username}".initialHashedPassword;
openssh.authorizedKeys.keys = config.users.users."${username}".openssh.authorizedKeys.keys;
};