add initial hashed password to root

This commit is contained in:
TheWanderingCrow 2025-06-30 10:08:49 -04:00
parent dd4079314b
commit 29ddfb2c30

View file

@ -40,8 +40,8 @@ in {
# Root user setup
root = {
shell = pkgs.zsh;
initialHashedPassword = "$y$j9T$xK9d9psdUDXilZld6Kn/l1$8aqdwzchX8hjlvalDIInRkEXKfVPQWrs1qRFiPSwjKB"; # Initial root password for installs
hashedPasswordFile = config.users.users.${hostSpec.username}.hashedPasswordFile;
hashedPassword = config.users.users.${hostSpec.username}.hashedPassword;
openssh.authorizedKeys.keys = config.users.users.${hostSpec.username}.openssh.authorizedKeys.keys; # root's ssh keys are mainly used for remote deployment.
};
};