nix-deploy/config/hosts/rudiger/services/postgres.nix

22 lines
412 B
Nix
Raw Normal View History

2021-09-27 14:55:55 +02:00
{ ... }:
{
services.postgresql = {
enable = true;
ensureDatabases = [ "nextcloud" ];
ensureUsers = [
{ name = "nextcloud";
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
}
];
};
2021-09-28 11:55:33 +02:00
services.postgresqlBackup = {
enable = true;
location = "/var/lib/postgresql/backup";
databases = [ "synapse" ];
startAt = "02:30";
compression = "none";
};
2021-09-27 14:55:55 +02:00
}