From 0d214bd808d18bb62f5a611096e3aba79e925d41 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 4 Jul 2026 11:58:55 +0200 Subject: [PATCH] nixos/matrix-authentication-service: escape CREDENTIALS_DIRECTORY correctly The `''` is needed to make Nix not interpret it as variable. However, it would now render in the manual as `${CREDENTIALS_DIRECTORY}`. If somebody would copy that, he'd get an error because that's a variable substitution then. Adding another backslash such that the code rendered in the manual is correct. --- nixos/modules/services/matrix/matrix-authentication-service.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/matrix/matrix-authentication-service.nix b/nixos/modules/services/matrix/matrix-authentication-service.nix index ecf38e9bd3c3..978f2d571fde 100644 --- a/nixos/modules/services/matrix/matrix-authentication-service.nix +++ b/nixos/modules/services/matrix/matrix-authentication-service.nix @@ -385,7 +385,7 @@ in For example : services.matrix-authentication-service.credentials."synapse-secret" = "/run/agenix/synapse-shared"; services.matrix-authentication-service.settings.matrix.secret_file = - "''${CREDENTIALS_DIRECTORY}/synapse-secret"; + "\''${CREDENTIALS_DIRECTORY}/synapse-secret"; ''; }; };