Re-introduce security.initialRootPassword, and add a new option users.extraUsers.<user>.hashedPassword
This commit is contained in:
@@ -111,5 +111,5 @@ with pkgs.lib;
|
||||
# Prevent logging in as root without a password. For NixOps, we
|
||||
# don't need this because the user can login via SSH, and for the
|
||||
# demo images, there is a demo user account that can sudo to root.
|
||||
users.extraUsers.root.password = null;
|
||||
security.initialRootPassword = "!";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user