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
[ "security" "initialRootPassword" ]
[ "users" "users" "root" "initialHashedPassword" ]
(cfg: if cfg.security.initialHashedPassword == "!"
(cfg: if cfg.security.initialRootPassword == "!"
then null
else cfg.security.initialHashedPassword))
else cfg.security.initialRootPassword))
];
###### interface