Add 'legacy/dotfiles/' from commit 'e9a44f677d2852fd5856cecc49ecb984efeba66c'
git-subtree-dir: legacy/dotfiles git-subtree-mainline:382887df65git-subtree-split:e9a44f677d
This commit is contained in:
38
legacy/dotfiles/home-manager/progs/borg.nix
Normal file
38
legacy/dotfiles/home-manager/progs/borg.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user