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

24 lines
561 B
Nix
Raw Permalink Normal View History

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