nixos/users-groups: fix mkChangedOptionModule for root password hash

This commit is contained in:
Raghav Sood 2020-07-11 13:48:26 +00:00
parent 0057be6ebc
commit 23e259cf7d
No known key found for this signature in database
GPG key ID: 947862F324C79D21

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