mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-23 12:37:30 +01:00
19 lines
396 B
Nix
19 lines
396 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
services.postgresql = {
|
|
enable = true;
|
|
enableTCPIP = false;
|
|
};
|
|
|
|
services.postgresqlBackup = {
|
|
enable = true;
|
|
location = "/data/backup/postgresql/";
|
|
startAt = "*-*-* 03:15:00";
|
|
|
|
# Each service is registered in its own configuration file
|
|
databases = [ ];
|
|
};
|
|
|
|
environment.systemPackages = [ config.services.postgresql.package ];
|
|
}
|