nixfiles/hosts/hetzner-arm/containers/caldav/profiles/restic.nix

24 lines
558 B
Nix
Raw Normal View History

{
2024-03-09 22:18:26 +00:00
self,
config,
...
}: let
2024-03-09 22:18:26 +00:00
backupSchedules = import "${self}/data/backupSchedules.nix";
2024-03-10 17:26:18 +00:00
inherit (config.services.secrets) secrets;
in {
services.restic.backups.caldav = {
user = "root";
paths = [
"/var/lib/radicale"
];
repository = "s3:s3.eu-central-003.backblazeb2.com/Chaos-Backups/Restic/CalDAV";
passwordFile = "${secrets.restic_password.path}";
environmentFile = "${secrets.restic_env.path}";
createWrapper = true;
2024-03-09 22:18:26 +00:00
pruneOpts = ["--keep-last 50"];
timerConfig = backupSchedules.restic.high;
};
}