sarek: initialize postgresql

This commit is contained in:
2023-10-05 22:14:29 +02:00
committed by Felix Albrigtsen
parent 49fcd0cd78
commit d316bfec3d
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
{ 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 ];
}