{ 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; }; }; }; }; }