2024-02-08 12:04:15 -05:00
|
|
|
{ pkgs, config, ... }:
|
2023-12-31 12:51:49 -05:00
|
|
|
{
|
2024-02-08 12:04:15 -05:00
|
|
|
sops.secrets.restic-yuki = {
|
|
|
|
sopsFile = ../../../secrets/restic/secrets.yaml;
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.restic ];
|
2023-12-31 12:51:49 -05:00
|
|
|
services.restic = {
|
|
|
|
backups = {
|
|
|
|
yuki = {
|
|
|
|
user = "root";
|
|
|
|
paths = [
|
|
|
|
"/home/notoh/docker"
|
|
|
|
"/var/lib/jellyfin"
|
|
|
|
"/var/lib/private/jellyseerr"
|
|
|
|
"/var/lib/private/homepage-dashboard"
|
|
|
|
];
|
2024-02-08 12:04:15 -05:00
|
|
|
exclude = [ "/home/notoh/docker/stash/data" ];
|
2023-12-31 12:51:49 -05:00
|
|
|
pruneOpts = [
|
|
|
|
"--keep-daily=7"
|
|
|
|
"--keep-weekly=6"
|
|
|
|
"--keep-monthly=5"
|
|
|
|
];
|
|
|
|
initialize = true;
|
|
|
|
repository = "/nas/restic";
|
|
|
|
passwordFile = config.sops.secrets.restic-yuki.path;
|
|
|
|
timerConfig = {
|
|
|
|
OnCalendar = "daily";
|
|
|
|
RandomizedDelaySec = "20m";
|
|
|
|
Persistent = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|