From abf901484c67e385a99f9fcdf4f7a2abfe208ba6 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 16 Feb 2014 07:33:07 -0500 Subject: [PATCH] Allow directly setting hashedPassword for root --- nixos/modules/config/users-groups.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index a0fd99732bd3..2d9b941a2cae 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -369,7 +369,7 @@ in home = "/root"; shell = cfg.defaultUserShell; group = "root"; - hashedPassword = config.security.initialRootPassword; + hashedPassword = mkDefault config.security.initialRootPassword; }; nobody = { uid = ids.uids.nobody;