refactor: streamline core modules into dedicated folder

This commit is contained in:
Rouven Seifert 2024-03-12 12:03:29 +01:00
parent b429e6468f
commit 01bcc9ecad
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
12 changed files with 27 additions and 28 deletions

26
modules/core/postgres.nix Normal file
View file

@ -0,0 +1,26 @@
{ ... }:
{
# automatically back up all databases
services.postgresqlBackup = {
enable = true;
location = "/var/lib/backup/postgresql";
databases = [
"directus_ese"
"course-management"
"git"
"hedgedoc"
"matrix-synapse"
"mautrix-telegram"
"mediawiki"
"nextcloud"
"postgres"
"sogo"
"vaultwarden"
"mailman"
"mailman-web"
"zammad"
];
};
services.postgresql.settings.max_connections = 1000;
}