nixos/users-groups: fix mkChangedOptionModule for root password hash
This commit is contained in:
parent
0057be6ebc
commit
23e259cf7d
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue