challenger: move more services from voyager: calibre-web, calibre-server, komga, nextcloud, postgres, timemachine

This commit is contained in:
2024-07-03 23:48:10 +02:00
parent ed08b6a0e4
commit 0e3e8218a7
9 changed files with 25 additions and 26 deletions

View File

@@ -0,0 +1,21 @@
{ config, pkgs, lib, ... }:
{
services.postgresql = {
enable = true;
/* enableTCPIP = true; # Expose on the network */
authentication = pkgs.lib.mkOverride 10 ''
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
};
services.postgresqlBackup = {
enable = true;
location = "/var/backup/postgres";
startAt = "*-*-* 03:15:00";
backupAll = true;
};
environment.systemPackages = [ config.services.postgresql.package ];
}