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. # environment.
home.packages = with pkgs; [ home.packages = with pkgs; [
arp-scan arp-scan
borgbackup
curlie curlie
direnv direnv
diskonaut diskonaut
@ -36,6 +37,7 @@
starship starship
tealdeer tealdeer
vivid vivid
wl-clipboard
wthrr wthrr
yazi yazi
zellij zellij
@ -81,6 +83,43 @@
settings = lib.importTOML confs/starship.toml; 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 # zsh config
programs.zsh = { programs.zsh = {
enable = true; enable = true;