summaryrefslogtreecommitdiffstats
path: root/nixos/modules/config/users-groups.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-03 12:30:54 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-03 12:36:56 +0100
commitf496c3cbe4a6a2db88892d14609618e449744ed6 (patch)
tree3de8462dc48e7825a86bff29cd1d2897fcba7cc2 /nixos/modules/config/users-groups.nix
parentf8f787b800dce2a2402a0cb693e9fe0b6895c4a7 (diff)
Obsolete security.initialPassword
You can now set users.extraUsers.root.initialHashedPassword instead.
Diffstat (limited to 'nixos/modules/config/users-groups.nix')
-rw-r--r--nixos/modules/config/users-groups.nix18
1 files changed, 3 insertions, 15 deletions
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix
index 60906d48ff0c..256c5888cb94 100644
--- a/nixos/modules/config/users-groups.nix
+++ b/nixos/modules/config/users-groups.nix
@@ -426,24 +426,12 @@ in {
options = [ groupOpts ];
};
+ # FIXME: obsolete - will remove.
security.initialRootPassword = mkOption {
type = types.str;
default = "!";
example = "";
- description = ''
- The (hashed) password for the root account set on initial
- installation. The empty string denotes that root can login
- locally without a password (but not via remote services such
- 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 that setting this option sets
- <literal>users.extraUsers.root.hashedPassword</literal>.
- 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.
- '';
+ visible = false;
};
};
@@ -461,7 +449,7 @@ in {
shell = mkDefault cfg.defaultUserShell;
group = "root";
extraGroups = [ "grsecurity" ];
- hashedPassword = mkDefault config.security.initialRootPassword;
+ initialHashedPassword = mkDefault config.security.initialRootPassword;
};
nobody = {
uid = ids.uids.nobody;