Re-introduce security.initialRootPassword, and add a new option users.extraUsers.<user>.hashedPassword

This commit is contained in:
Rickard Nilsson
2014-02-05 15:56:51 +01:00
parent 03ee174032
commit 0b92ad02c8
3 changed files with 64 additions and 23 deletions
@@ -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 = "!";
}