From 15d2df41caad12c31bb187cd93e7be8df512e10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Thu, 27 Nov 2025 16:39:44 +0100 Subject: [PATCH] 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. --- nixos/modules/services/web-apps/nextcloud.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index c866f1b7c062..265c455992cf 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -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); }