fruitbasket/modules/postgres.nix

25 lines
467 B
Nix
Raw Normal View History

{ pkgs, ... }:
2023-08-21 11:40:56 +02:00
{
# automatically back up all databases
services.postgresqlBackup = {
enable = true;
location = "/var/lib/backup/postgresql";
2023-08-21 11:48:03 +02:00
databases = [
"course-management"
"gitea"
"hedgedoc"
"matrix-synapse"
"mautrix-telegram"
"mediawiki"
"nextcloud"
"postgres"
"sogo"
"vaultwarden"
2023-09-14 16:03:29 +02:00
"mailman"
"mailmanweb"
2023-08-21 11:48:03 +02:00
];
2023-08-21 11:40:56 +02:00
};
services.postgresql.settings.max_connections = 1000;
2023-08-21 11:40:56 +02:00
}