diff options
Diffstat (limited to 'modules/services/nextcloud.nix')
| -rw-r--r-- | modules/services/nextcloud.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/services/nextcloud.nix b/modules/services/nextcloud.nix index ef6f791..38b6145 100644 --- a/modules/services/nextcloud.nix +++ b/modules/services/nextcloud.nix @@ -85,6 +85,7 @@ } -o StrictHostKeyChecking=accept-new"; TMPDIR = "/var/tmp"; }; + extraCreateArgs = [ "--info" "--stats" ]; compression = "auto,lzma"; startAt = "daily"; readWritePaths = [ @@ -93,10 +94,8 @@ ]; preHook = '' set -euo pipefail - - # Exporting the specific Nextcloud repo secret export BORG_REPO="$(cat ${config.sops.secrets."borg_nextcloud_repo".path})" - + INSTALL="${pkgs.coreutils}/bin/install" FIND="${pkgs.findutils}/bin/find" MYSQLDUMP="${pkgs.mariadb.client}/bin/mariadb-dump" @@ -123,6 +122,8 @@ ''; }; + systemd.services."borgbackup-job-nextcloud".unitConfig.OnFailure = [ "notify-backup-failure@%n.service" ]; + services.fail2ban = { enable = true; bantime = lib.mkDefault "1h"; |
