diff --git a/containers/conduit.nix b/containers/conduit.nix index b5d3234..cad213a 100644 --- a/containers/conduit.nix +++ b/containers/conduit.nix @@ -122,12 +122,34 @@ in authentication = "host all all all md5"; - ensureDatabases = { "synapse" = { ENCODING = "UTF8"; TEMPLATE = "template0"; }; }; + ensureDatabases = { + "synapse" = { ENCODING = "UTF8"; TEMPLATE = "template0"; }; + "mautrix-facebook" = { ENCODING = "UTF8"; TEMPLATE = "template0"; }; + "mautrix-signal" = { ENCODING = "UTF8"; TEMPLATE = "template0"; }; + "mautrix-whatsapp" = { ENCODING = "UTF8"; TEMPLATE = "template0"; }; + "mautrix-discord" = { ENCODING = "UTF8"; TEMPLATE = "template0"; }; + }; ensureExtensions = {}; ensureUsers = [ - { name = "synapse"; ensurePermissions = { - "DATABASE \"synapse\"" = "ALL PRIVILEGES"; - }; + { + name = "synapse"; + ensurePermissions."DATABASE \"synapse\"" = "ALL PRIVILEGES"; + } + { + name = "mautrix-facebook"; + ensurePermissions."DATABASE \"mautrix-facebook\"" = "ALL PRIVILEGES"; + } + { + name = "mautrix-signal"; + ensurePermissions."DATABASE \"mautrix-signal\"" = "ALL PRIVILEGES"; + } + { + name = "mautrix-whatsapp"; + ensurePermissions."DATABASE \"mautrix-whatsapp\"" = "ALL PRIVILEGES"; + } + { + name = "mautrix-discord"; + ensurePermissions."DATABASE \"mautrix-discord\"" = "ALL PRIVILEGES"; } ]; };