mirror of
https://codeberg.org/hyperreal/home-manager
synced 2024-11-01 15:33:05 +01:00
Add borgmatic
This commit is contained in:
parent
581e3a86d8
commit
691aabcf6a
39
home.nix
39
home.nix
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user