refactor: streamline core modules into dedicated folder
This commit is contained in:
parent
b429e6468f
commit
01bcc9ecad
12 changed files with 27 additions and 28 deletions
26
modules/core/postgres.nix
Normal file
26
modules/core/postgres.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue