notohh
0845808f39
Some checks failed
flake check / check (push) Successful in 10m2s
fmt check / check (push) Has been cancelled
39 lines
891 B
Nix
39 lines
891 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
sops.secrets.restic-yuki = {
|
|
sopsFile = ../../../secrets/restic/secrets.yaml;
|
|
};
|
|
environment.systemPackages = [pkgs.restic];
|
|
services.restic = {
|
|
backups = {
|
|
yuki = {
|
|
user = "root";
|
|
paths = [
|
|
"/home/notoh/docker"
|
|
"/var/lib/jellyfin"
|
|
"/var/lib/private/jellyseerr"
|
|
"/var/lib/private/homepage-dashboard"
|
|
];
|
|
exclude = [
|
|
"/home/notoh/docker/stash/data"
|
|
];
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|