add restic backup configuration

This commit is contained in:
Ingolf Wagner 2025-06-16 13:33:17 +02:00
commit 9e48b622bf
2 changed files with 25 additions and 1 deletions
homes/ingolf-wagner

View file

@ -8,12 +8,13 @@
imports = [
../palo
./git.nix
./i3.nix
./keymapper.nix
./noti.nix
./restic.nix
./ssh.nix
./taskwarrior.nix
./vpn.nix
./i3.nix
];
gui.enable = true;

View file

@ -0,0 +1,23 @@
{ config, ... }:
{
backup.configurations = [ "systemctl --user status restic-backup-home.service" ];
services.restic = {
enable = true;
backups.home = {
initialize = true;
paths = config.backup.dirs;
repository = "s3:https://bits3.badenit.de/jra-user-backup-ingolf-wagner";
passwordFile = "${config.home.homeDirectory}/.ssh/restic_password";
environmentFile = "${config.home.homeDirectory}/.ssh/restic_environment_file";
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 5"
"--keep-monthly 12"
];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
};
};
};
}