services: move all user operations in initscript
This commit is contained in:
parent
2d4975768b
commit
d211fb72c4
@ -31,50 +31,6 @@
|
||||
host keycloakdb keycloak localhost scram-sha-256
|
||||
'';
|
||||
initialScript = config.age.secrets."services/postgresql/initScript.sql".path;
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "gitea";
|
||||
ensurePermissions = {
|
||||
"DATABASE giteadb" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "nextcloud";
|
||||
ensurePermissions = {
|
||||
"DATABASE nextclouddb" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "synapse";
|
||||
ensurePermissions = {
|
||||
"DATABASE synapsedb" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "mautrixwa";
|
||||
ensurePermissions = {
|
||||
"DATABASE whatsappdb" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "mautrixtele";
|
||||
ensurePermissions = {
|
||||
"DATABASE telegramdb" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "mautrixsignal";
|
||||
ensurePermissions = {
|
||||
"DATABASE signaldb" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "keycloak";
|
||||
ensurePermissions = {
|
||||
"DATABASE keycloakdb" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.postgresqlBackup.enable = true;
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user