mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
37 lines
682 B
Nix
37 lines
682 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.restic.backups.laptop = {
|
|
user = "root";
|
|
initialize = true;
|
|
passwordFile = "/etc/nixos/secrets/restic-auth";
|
|
repository = "s3:d8j2.or.idrivee2-38.com/backups";
|
|
environmentFile = "/etc/nixos/secrets/restic.env";
|
|
paths = [
|
|
"/home/"
|
|
"/root"
|
|
"/var/lib/"
|
|
# "/var/log/"
|
|
"/etc/"
|
|
|
|
];
|
|
exclude = [
|
|
"/home/death916/.local/share/*"
|
|
"/home/death916/Downloads"
|
|
"*/.cache/*"
|
|
|
|
];
|
|
|
|
extraBackupArgs = [
|
|
"--verbose"
|
|
"--exclude-caches"
|
|
];
|
|
timerConfig = {
|
|
OnCalendar = "*:40";
|
|
Persistent = true;
|
|
RandomizedDelaySec = "15m";
|
|
};
|
|
};
|
|
|
|
}
|