enable backups for rackserv

This commit is contained in:
xunuwu 2025-06-05 08:14:16 +02:00
parent 5d7ed51f99
commit 2fea088019
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
4 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{config, ...}: {
services.restic.backups.rackserv = {
initialize = true;
inhibitsSleep = true;
repository = "rest:http://nixdesk:8000/rackserv";
passwordFile = config.sops.secrets.restic-password.path;
timerConfig = {
OnCalendar = "18:00";
Persistent = true;
RandomizedDelaySec = "1h";
};
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 5"
"--keep-monthly 3"
];
};
}