2
2
mirror of https://git.feal.no/felixalb/nixos-config.git synced 2024-12-23 12:37:30 +01:00
nixos-config/hosts/defiant/services/postgresql.nix

19 lines
396 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 = {
2024-03-07 23:45:25 +01:00
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";
2024-03-07 23:45:25 +01:00
# Each service is registered in its own configuration file
databases = [ ];
2023-10-14 01:22:32 +02:00
};
environment.systemPackages = [ config.services.postgresql.package ];
}