Files
dotfiles/home-manager/progs/borg.nix
Simon Gardling 325e2720ec
Some checks failed
Build and Deploy / deploy (push) Failing after 4m2s
borg: remove signal and zen backups (handled by other means
2026-04-07 14:31:09 -04:00

39 lines
806 B
Nix

{ pkgs, homeDirectory, ... }:
{
programs.borgmatic = {
enable = true;
package = pkgs.borgmatic;
backups = {
home = {
location = {
sourceDirectories = (
map (f: "${homeDirectory}/${f}") [
".local/share/fish"
".ssh"
"Documents"
"projects"
"Pictures"
"school"
]
);
excludeHomeManagerSymlinks = true;
repositories = [ "ssh://server-public/tank/bak/laptop" ];
extraConfig = {
compression = "zstd";
};
};
retention = {
keepHourly = 10;
keepDaily = 30;
keepWeekly = 8;
keepMonthly = 2;
keepYearly = 0;
};
};
};
};
}