mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2025-01-09 11:51:14 +01:00
17 lines
335 B
Nix
17 lines
335 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
services.postgresql = {
|
|
enable = true;
|
|
enableTCPIP = false;
|
|
};
|
|
|
|
services.postgresqlBackup = {
|
|
# enable = true;
|
|
location = "/data/backup/postgresql/";
|
|
startAt = "*-*-* 03:15:00";
|
|
backupAll = true;
|
|
};
|
|
|
|
environment.systemPackages = [ config.services.postgresql.package ];
|
|
}
|