28 lines
667 B
Nix
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";
|
|
};
|
|
};
|
|
}
|