From 939fa2ab2b6e58a3952e716148316076ad10b771 Mon Sep 17 00:00:00 2001 From: Rasheeq Azad Date: Mon, 11 Aug 2025 17:34:53 -0400 Subject: [PATCH] nixos/users-groups: use submodule config in hashedPasswordFile.default This fixes nixos-option of hashedPasswordFile. --- nixos/modules/config/users-groups.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index 59f1b44483df..8074b9ce0492 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