29 lines
840 B
Nix
29 lines
840 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
environment.systemPackages = [pkgs.restic];
|
|
|
|
services.restic.backups = {
|
|
b2 = {
|
|
initialize = true;
|
|
environmentFile = "/etc/restic-env";
|
|
repository = "b2:marauder-backup";
|
|
passwordFile = "/etc/restic-password";
|
|
paths = [
|
|
"${config.users.users.nettika.home}/Desktop"
|
|
"${config.users.users.nettika.home}/Documents"
|
|
"${config.users.users.nettika.home}/Music"
|
|
"${config.users.users.nettika.home}/Pictures"
|
|
"${config.users.users.nettika.home}/Projects"
|
|
"${config.users.users.nettika.home}/Public"
|
|
"${config.users.users.nettika.home}/Templates"
|
|
"${config.users.users.nettika.home}/Videos"
|
|
];
|
|
pruneOpts = [
|
|
"--keep-daily 7"
|
|
"--keep-weekly 5"
|
|
"--keep-monthly 12"
|
|
];
|
|
};
|
|
};
|
|
}
|