diff --git a/modules/services/server/postgresql.nix b/modules/services/server/postgresql.nix index e08d452..bc6593c 100644 --- a/modules/services/server/postgresql.nix +++ b/modules/services/server/postgresql.nix @@ -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; diff --git a/secrets/services/postgresql/initScript.age b/secrets/services/postgresql/initScript.age index 60736fc..9f05c38 100644 Binary files a/secrets/services/postgresql/initScript.age and b/secrets/services/postgresql/initScript.age differ