Skip to content

Commit 23e259c

Browse files
committed
nixos/users-groups: fix mkChangedOptionModule for root password hash
1 parent 0057be6 commit 23e259c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nixos/modules/config/users-groups.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ in {
430430
(mkChangedOptionModule
431431
[ "security" "initialRootPassword" ]
432432
[ "users" "users" "root" "initialHashedPassword" ]
433-
(cfg: if cfg.security.initialHashedPassword == "!"
433+
(cfg: if cfg.security.initialRootPassword == "!"
434434
then null
435-
else cfg.security.initialHashedPassword))
435+
else cfg.security.initialRootPassword))
436436
];
437437

438438
###### interface

0 commit comments

Comments
 (0)