Add borgmatic

This commit is contained in:
Jeffrey Serio 2024-09-24 17:51:03 -05:00
parent 581e3a86d8
commit 691aabcf6a

View File

@ -16,6 +16,7 @@
# environment.
home.packages = with pkgs; [
arp-scan
borgbackup
curlie
direnv
diskonaut
@ -36,6 +37,7 @@
starship
tealdeer
vivid
wl-clipboard
wthrr
yazi
zellij
@ -81,6 +83,43 @@
settings = lib.importTOML confs/starship.toml;
};
# borgmatic
services.borgmatic = {
enable = true;
frequency = "daily";
};
programs.borgmatic = {
enable = true;
backups.epool = {
location = {
repositories = [ "/epool/borgbackup/moonshadow" ];
patterns = [
"+ /home/jas"
"- /home/jas/.cache"
"- /home/jas/downloads"
"- /home/jas/.local/share/containers"
"- /home/jas/.config/emacs"
];
};
retention = {
keepDaily = 7;
keepMonthly = 12;
keepWeekly = 4;
keepYearly = 4;
};
consistency.checks = [
{
name = "repository";
frequency = "2 weeks";
}
{
name = "archives";
frequency = "4 weeks";
}
];
};
};
# zsh config
programs.zsh = {
enable = true;