Files
jsl-home/homeManagerModules/restic/profiles/base.nix
John Lancaster b477744d9b fixes
2025-07-28 19:55:01 -05:00

39 lines
834 B
Nix

{ lib, config, ... }:
{
base = {
repository = "local:/mnt/backup";
password-file = "${config.xdg.configHome}/resticprofile/password.txt";
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 = [
".vscode-server"
".cache"
".venv"
".pyenv"
"data/postgres"
"build"
"__pycache__"
"*.log"
"*.egg-info"
"*.csv"
"*.m4a"
];
schedule-permission = "system";
schedule-priority = "background";
check-after = true;
};
prune = {
schedule-permission = "user";
schedule-lock-wait = "1h";
};
};
}