parent
5a3b9dd8cf
commit
9e48b622bf
2 changed files with 25 additions and 1 deletions
homes/ingolf-wagner
|
@ -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;
|
||||
|
|
23
homes/ingolf-wagner/restic.nix
Normal file
23
homes/ingolf-wagner/restic.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue