From 6c011dc22e901be95f4860f482049a038bee8c3a Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 27 Nov 2023 21:18:29 +0530 Subject: kay/dendrite: migrate to services.mysql.ensureUsers.*.ensurePermissions --- hosts/kay/modules/dendrite.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'hosts/kay/modules') diff --git a/hosts/kay/modules/dendrite.nix b/hosts/kay/modules/dendrite.nix index 4ec2bb3..f5b2c97 100644 --- a/hosts/kay/modules/dendrite.nix +++ b/hosts/kay/modules/dendrite.nix @@ -21,12 +21,10 @@ in listen_addresses = lib.mkForce ""; }; ensureDatabases = [ "dendrite" ]; - ensureUsers = [ - { - name = "dendrite"; - ensurePermissions."DATABASE dendrite" = "ALL PRIVILEGES"; - } - ]; + ensureUsers = [{ + name = "dendrite"; + ensureDBOwnership = true; + }]; }; dendrite = { -- cgit v1.2.3