diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index e2f9e7b5a8f0..fd3c4e485d09 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -377,7 +377,7 @@ let hashedPasswordFile = mkOption { type = with types; nullOr str; - default = cfg.users.${name}.passwordFile; + default = config.passwordFile; defaultText = literalExpression "null"; description = '' The full path to a file that contains the hash of the user's