notohh
0845808f39
Some checks failed
flake check / check (push) Successful in 10m2s
fmt check / check (push) Has been cancelled
36 lines
799 B
Nix
36 lines
799 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
sops.secrets.restic-kariru = {
|
|
sopsFile = ../../../secrets/restic/secrets.yaml;
|
|
};
|
|
environment.systemPackages = [pkgs.restic];
|
|
services.restic = {
|
|
backups = {
|
|
kariru = {
|
|
user = "root";
|
|
paths = [
|
|
"/var/lib/radarr"
|
|
"/var/lib/sonarr"
|
|
"/var/lib/whisparr"
|
|
"/var/lib/private/prowlarr"
|
|
];
|
|
pruneOpts = [
|
|
"--keep-daily=7"
|
|
"--keep-weekly=6"
|
|
"--keep-monthly=5"
|
|
];
|
|
initialize = true;
|
|
repository = "/nas/restic";
|
|
passwordFile = config.sops.secrets.restic-kariru.path;
|
|
timerConfig = {
|
|
OnCalendar = "daily";
|
|
RandomizedDelaySec = "20m";
|
|
Persistent = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|