hosts/fs-01: make use of credential file for ping url and repo path
This commit is contained in:
@@ -22,6 +22,8 @@ in
|
||||
|
||||
syncthingserver.enable = true;
|
||||
|
||||
sops.secrets."borgmatic_repo_urls/local" = { };
|
||||
sops.secrets."borgmatic_repo_urls/remote" = { };
|
||||
sops.secrets."borgmatic_ping_urls/local" = { };
|
||||
sops.secrets."borgmatic_ping_urls/remote" = { };
|
||||
sops.secrets."borgmatic_pass/local" = { };
|
||||
@@ -37,7 +39,7 @@ in
|
||||
repositories = [
|
||||
{
|
||||
label = backupLabel;
|
||||
path = "ssh://borg@borg-01.tail755c5.ts.net/./";
|
||||
path = ''{credential file ${config.sops.secrets."borgmatic_repo_urls/local".path}}'';
|
||||
}
|
||||
];
|
||||
encryption_passcommand = ''cat ${config.sops.secrets."borgmatic_pass/local".path}'';
|
||||
@@ -52,7 +54,7 @@ in
|
||||
ssh_command = "ssh -i /etc/ssh/ssh_host_ed25519_key";
|
||||
|
||||
healthchecks = {
|
||||
ping_url = "https://hc.its-et.me/ping/PlGPBqq-0rLI4N4ya3jYmg/backup-syncthing";
|
||||
ping_url = ''{credential file ${config.sops.secrets."borgmatic_ping_urls/local".path}}'';
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user