diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-09 00:04:48 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-09 00:52:02 +0200 |
commit | 4fc151b5a3c749833554379a96bd87676f6c5740 (patch) | |
tree | 14a62675151cc14645867df383ffd7c4a940d177 /nixos/modules/config/users-groups.nix | |
parent | 8919d736a034c85eb3e38bc3d9baedcb00356e4e (diff) | |
download | nixpkgs-4fc151b5a3c749833554379a96bd87676f6c5740.tar nixpkgs-4fc151b5a3c749833554379a96bd87676f6c5740.tar.gz nixpkgs-4fc151b5a3c749833554379a96bd87676f6c5740.tar.bz2 nixpkgs-4fc151b5a3c749833554379a96bd87676f6c5740.tar.lz nixpkgs-4fc151b5a3c749833554379a96bd87676f6c5740.tar.xz nixpkgs-4fc151b5a3c749833554379a96bd87676f6c5740.tar.zst nixpkgs-4fc151b5a3c749833554379a96bd87676f6c5740.zip |
nixos-install: Ask the user to set a root password
This removes the need to have an initially empty root password.
Diffstat (limited to 'nixos/modules/config/users-groups.nix')
-rw-r--r-- | nixos/modules/config/users-groups.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index 2c37dccd6ce..e7afb518157 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -374,8 +374,8 @@ in { security.initialRootPassword = mkOption { type = types.str; - default = ""; - example = "!"; + default = "!"; + example = ""; description = '' The (hashed) password for the root account set on initial installation. The empty string denotes that root can login @@ -383,9 +383,9 @@ in { as SSH, or indirectly via <command>su</command> or <command>sudo</command>). The string <literal>!</literal> prevents root from logging in using a password. - Note, setting this option sets + Note that setting this option sets <literal>users.extraUsers.root.hashedPassword</literal>. - Note, if <literal>users.mutableUsers</literal> is false + Also, if <literal>users.mutableUsers</literal> is false you cannot change the root password manually, so in that case the name of this option is a bit misleading, since it will define the root password beyond the user initialisation phase. |