From eed29e8d108ee91bd7bb2771fda6c0bf57a1cab8 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 25 Jul 2022 21:29:41 +0200 Subject: [PATCH] Use variable for db_name --- hosts/architect/matrix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/architect/matrix.nix b/hosts/architect/matrix.nix index a5cea1f..8ab4396 100644 --- a/hosts/architect/matrix.nix +++ b/hosts/architect/matrix.nix @@ -48,8 +48,8 @@ in { package = pkgs.postgresql_11; ensureDatabases = [ db_name ]; ensureUsers = [{ - name = "matrix-synapse"; - ensurePermissions = { "DATABASE synapse" = "ALL PRIVILEGES"; }; + name = db_name; + ensurePermissions = { "DATABASE ${db_name}" = "ALL PRIVILEGES"; }; }]; };