flakes/hosts/alyssum/restic.nix
Cilly Leang d2fbc73636
Some checks failed
CI / Build linux-lava for x86_64-linux (push) Has been cancelled
alyssum/restic: ignore all bind mounts
2026-06-20 18:03:00 +10:00

31 lines
936 B
Nix

{ config, lib, ... }: {
age.secrets.restic_env.file = ../../secrets/restic_env.age;
age.secrets.restic_pass.file = ../../secrets/restic_pass.age;
age.secrets.restic_url.file = ../../secrets/restic_url.age;
services.restic.backups."flower" = {
initialize = true;
createWrapper = true;
progressFps = 0.016666;
environmentFile = config.age.secrets.restic_env.path;
passwordFile = config.age.secrets.restic_pass.path;
repositoryFile = config.age.secrets.restic_url.path;
paths = ["/flower"];
exclude = ["/flower/.snapshots"]
++ builtins.filter (x: lib.strings.hasPrefix "/flower" x) (builtins.attrNames config.me.binds);
timerConfig = {
# every 6 hours
OnCalendar = "*-*-* 00,06,12,18:00:00";
Persistent = true;
};
pruneOpts = [
"--keep-last 8"
"--keep-daily 7"
"--keep-weekly 5"
"--keep-monthly 12"
"--keep-yearly 75"
];
};
}