diff options
Diffstat (limited to 'modules/services/git.nix')
| -rw-r--r-- | modules/services/git.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/services/git.nix b/modules/services/git.nix index 4249bd0..12ef804 100644 --- a/modules/services/git.nix +++ b/modules/services/git.nix @@ -82,14 +82,15 @@ config.sops.secrets."borgbase_ssh_key".path } -o StrictHostKeyChecking=accept-new"; }; + extraCreateArgs = [ "--info" "--stats" ]; compression = "auto,lzma"; startAt = "daily"; preHook = '' set -euo pipefail - - # Exporting the specific Git repo secret export BORG_REPO="$(cat ${config.sops.secrets."borg_git_repo".path})" ''; }; + + systemd.services."borgbackup-job-git".unitConfig.OnFailure = [ "notify-backup-failure@%n.service" ]; }; } |
