mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
nixos/users-groups: fix mkChangedOptionModule for root password hash
This commit is contained in:
parent
0057be6ebc
commit
23e259cf7d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user