summaryrefslogtreecommitdiff
path: root/hosts/kay
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-11-27 21:18:29 +0530
committersinanmohd <sinan@sinanmohd.com>2023-11-27 21:18:29 +0530
commit6c011dc22e901be95f4860f482049a038bee8c3a (patch)
tree0d05569264d36613596c6b37d0d9076e663360a6 /hosts/kay
parent824fcd344e42c54a4cbdedc8f7a11d3520218649 (diff)
kay/dendrite: migrate to services.mysql.ensureUsers.*.ensurePermissions
Diffstat (limited to 'hosts/kay')
-rw-r--r--hosts/kay/modules/dendrite.nix10
1 files changed, 4 insertions, 6 deletions
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 = {