mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 01:38:28 +02:00
feat: update user's initialHashedPassword
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
users.users."${username}" = {
|
users.users."${username}" = {
|
||||||
# generated by `mkpasswd -m scrypt`
|
# generated by `mkpasswd -m scrypt`
|
||||||
# we have to use initialHashedPassword here when using tmpfs for /
|
# 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}";
|
home = "/home/${username}";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
users.users.root = {
|
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;
|
openssh.authorizedKeys.keys = config.users.users."${username}".openssh.authorizedKeys.keys;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user