Files
jsl-home/homeManagerModules/restic/resticprofile-base.nix
2025-07-28 17:43:45 -05:00

28 lines
667 B
Nix

{ lib, ... }:
{
base = lib.mkDefault {
repository = "local:/mnt/backup";
passwordFile = "password.txt";
source = [ "/home/john/Documents" ];
status-file = "{{ .ConfigDir }}/backup-status.json";
retention = {
after-backup = true;
keep-last = "10";
keep-hourly = "8";
keep-daily = "14";
keep-weekly = "8";
};
backup = {
verbose = true;
exclude-file = "{{ .ConfigDir }}/profiles/excludes";
schedule-permission = "system";
schedule-priority = "background";
check-after = true;
};
prune = {
schedule-permission = "user";
schedule-lock-wait = "1h";
};
};
}