Merge pull request #92933 from RaghavSood/bug/92910

nixos/users-groups: fix mkChangedOptionModule for root password hash
This commit is contained in:
Florian Klink 2020-07-12 10:11:43 +02:00 committed by GitHub
commit b7ff71a90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,9 +430,9 @@ in {
(mkChangedOptionModule (mkChangedOptionModule
[ "security" "initialRootPassword" ] [ "security" "initialRootPassword" ]
[ "users" "users" "root" "initialHashedPassword" ] [ "users" "users" "root" "initialHashedPassword" ]
(cfg: if cfg.security.initialHashedPassword == "!" (cfg: if cfg.security.initialRootPassword == "!"
then null then null
else cfg.security.initialHashedPassword)) else cfg.security.initialRootPassword))
]; ];
###### interface ###### interface