0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos-install: Ask the user to set a root password

This removes the need to have an initially empty root password.
This commit is contained in:
Eelco Dolstra 2014-05-09 00:04:48 +02:00
parent 8919d736a0
commit 4fc151b5a3
9 changed files with 39 additions and 24 deletions

View file

@ -114,11 +114,6 @@ in
# Always include cryptsetup so that NixOps can use it.
environment.systemPackages = [ pkgs.cryptsetup ];
# Prevent logging in as root without a password. This doesn't really matter,
# since the only PAM services that allow logging in with a null
# password are local ones that are inaccessible on Google Compute machines.
security.initialRootPassword = mkDefault "!";
# Configure default metadata hostnames
networking.extraHosts = ''
169.254.169.254 metadata.google.internal metadata