mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 07:25:40 +00:00
27 lines
624 B
Nix
27 lines
624 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
sops.secrets."restic/password" = { };
|
|
sops.secrets."restic/rclone-config" = { };
|
|
|
|
services.restic.backups.gdrive = {
|
|
initialize = true;
|
|
inhibitsSleep = true;
|
|
passwordFile = config.sops.secrets."restic/password".path;
|
|
paths = [
|
|
"/data/Backup"
|
|
"/home/toast/workspace"
|
|
];
|
|
repository = "rclone:gdrive:restic";
|
|
rcloneConfigFile = config.sops.secrets."restic/rclone-config".path;
|
|
pruneOpts = [
|
|
"--keep-daily 7"
|
|
"--keep-weekly 3"
|
|
"--keep-monthly 3"
|
|
];
|
|
timerConfig = {
|
|
OnCalendar = "daily";
|
|
Persistent = true;
|
|
};
|
|
};
|
|
}
|