hosts/lax-01: add borgmatic config

This commit is contained in:
2025-10-19 07:46:14 -07:00
parent c1920fe438
commit 3658b6dd0d

View File

@@ -290,19 +290,34 @@
2200 # for Gitea
];
#borg-config = {
# enable = true;
borg-config = {
enable = true;
# backupLabel = "appserver";
# localRepoPath = "ssh://borg@borg-01.tail755c5.ts.net/./";
# remoteRepoPath = "ssh://fm1833@fm1833.rsync.net/./appdata";
# sourceDirectories = [
# "/mnt/data/docker-compose"
# "/mnt/data/services"
# ];
# hcPingUrlLocal = "https://hc.its-et.me/ping/PlGPBqq-0rLI4N4ya3jYmg/backup-appdata";
# hcPingUrlRemote = "https://hc.its-et.me/ping/PlGPBqq-0rLI4N4ya3jYmg/backup-appdata-remote";
#};
backupLabel = "lax-01";
localRepoPath = "ssh://borg@borg-01.tail755c5.ts.net/./";
remoteRepoPath = "ssh://fm1833@fm1833.rsync.net/./hosts/lax-01";
sourceDirectories = [
"/home/etorres"
];
hcPingUrlLocal = "https://hc.its-et.me/ping/PlGPBqq-0rLI4N4ya3jYmg/backup-lax-01";
hcPingUrlRemote = "https://hc.its-et.me/ping/PlGPBqq-0rLI4N4ya3jYmg/backup-lax-01-remote";
postgresqlDatabases = [
# Note this database is running in a docker container
{
name = "authentik";
username = "authentik";
password = ''{credential file ${config.sops.secrets."postgres_databases/authentik".path}}'';
hostname = "127.0.0.1:24000";
}
{
name = "healthchecks";
username = "healthchecks";
password = ''{credential file ${config.sops.secrets."postgres_databases/healthchecks".path}}'';
hostname = "127.0.0.1";
}
];
};
base.userSSHKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJc52bmxvqBOQJ8vRgI/Tz7PQU8a+4ai7/uB6j2tvJuP etorres@xenon"