From 33c3a7990f014ea673464a4debf09678e628c012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 29 Apr 2022 17:42:18 +0100 Subject: [PATCH] fix overlapping names --- config/services/matrix-media-repo.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/services/matrix-media-repo.nix b/config/services/matrix-media-repo.nix index 12677beb..dbe936f4 100644 --- a/config/services/matrix-media-repo.nix +++ b/config/services/matrix-media-repo.nix @@ -1,7 +1,7 @@ { config, pkgs, lib, ... }: let matrix-media-repo = pkgs.callPackage ../../packages/matrix/matrix-media-repo.nix { }; - config = pkgs.writeText "matrix-media-repo.yaml" (lib.generators.toYAML { } { + config-yml = pkgs.writeText "matrix-media-repo.yaml" (lib.generators.toYAML { } { repo = { bindAddress = "127.0.0.1"; port = 8008; @@ -37,7 +37,7 @@ in preStart = '' akid=$(cat ${config.sops.secrets."services/matrix-media-repo/access-key-id".path}) sak=$(cat ${config.sops.secrets."services/matrix-media-repo/access-key-id".path}) - cat ${config} > /var/lib/matrix-media-repo/config.yml + cat ${config-yml} > /var/lib/matrix-media-repo/config.yml sed -i "s|#ACCESS_KEY_ID#|$akid|g' /var/lib/matrix-media-repo/config.yml sed -i "s|#SECRET_ACCESS_KEY#|$sak|g' /var/lib/matrix-media-repo/config.yml '';