nixos/nextcloud: Fix invalid variable name in nextcloud-config.php

The variable $file does not exist in nix_read_secret_and_decode_json_file.
This PR updates the code to use the parameter $credential_name instead.
This commit is contained in:
Manuel Vögele
2025-11-27 17:05:13 +01:00
parent 967aeb6a07
commit 15d2df41ca
@@ -264,7 +264,7 @@ let
$decoded = json_decode(nix_read_secret($credential_name), true);
if (json_last_error() !== JSON_ERROR_NONE) {
error_log(sprintf("Cannot decode %s, because: %s", $file, json_last_error_msg()));
error_log(sprintf("Cannot decode %s, because: %s", $credential_name, json_last_error_msg()));
exit(1);
}