nixos-config/hosts/janeway/services/postgresql.nix

18 lines
334 B
Nix
Raw Normal View History

2023-10-14 01:22:32 +02:00
{ config, pkgs, lib, ... }:
{
services.postgresql = {
enable = true;
2023-10-15 03:50:59 +02:00
enableTCPIP = false;
2023-10-14 01:22:32 +02:00
};
services.postgresqlBackup = {
enable = true;
2023-12-18 22:29:55 +01:00
location = "/data/backup/postgresql/";
2023-10-14 01:22:32 +02:00
startAt = "*-*-* 03:15:00";
backupAll = true;
};
environment.systemPackages = [ config.services.postgresql.package ];
}