21 lines
461 B
Nix
21 lines
461 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
services.postgresql = {
|
|
enable = true;
|
|
enableTCPIP = false;
|
|
authentication = pkgs.lib.mkOverride 10 ''
|
|
#type database DBuser auth-method
|
|
local all all trust
|
|
'';
|
|
};
|
|
|
|
services.postgresqlBackup = {
|
|
enable = true;
|
|
location = "/backup/postgresql/";
|
|
startAt = "*-*-* 03:15:00";
|
|
backupAll = true;
|
|
};
|
|
|
|
environment.systemPackages = [ config.services.postgresql.package ];
|
|
}
|