update the desktop restic

This commit is contained in:
Andreas Zweili 2022-01-29 16:01:27 +01:00
parent 111a59fff3
commit 4cf62fd64e
1 changed files with 10 additions and 3 deletions

View File

@ -1,13 +1,20 @@
{ username, ... }:
{ self, pkgs, username, ... }:
{
environment.systemPackages = with pkgs; [
restic
];
services.restic.backups.${username} = {
user = username;
repository = "rest:http://10.7.89.30:8000";
timerConfig.OnCalendar = "hourly";
timerConfig = {
OnCalendar = "hourly";
RandomizedDelaySec = "15min";
};
passwordFile = "/home/${username}/.nixos/secrets/passwords/restic.key";
paths = [ "/home/${username}/" ];
extraBackupArgs = [
"--exclude-file=/home/${username}/.nixos/modules/restic/excludes.txt"
"--exclude-file=${self}/modules/restic/excludes.txt"
];
pruneOpts = [
"--keep-hourly 24"