2
2
mirror of https://git.feal.no/felixalb/nixos-config.git synced 2025-01-09 20:01:15 +01:00
nixos-config/hosts/sarek/services/postgresql.nix

18 lines
352 B
Nix
Raw Normal View History

2023-10-05 22:14:29 +02:00
{ config, pkgs, lib, ... }:
{
services.postgresql = {
enable = true;
enableTCPIP = true; # Expose on the network
};
services.postgresqlBackup = {
enable = true;
location = "/backup/postgresql/";
startAt = "*-*-* 03:15:00";
backupAll = true;
};
environment.systemPackages = [ config.services.postgresql.package ];
}