From cb2cd7068d5a4e48586f1f1c89a4fd4ffce3d3b0 Mon Sep 17 00:00:00 2001 From: schererleander Date: Mon, 27 Oct 2025 10:28:12 +0100 Subject: feat: setup, configure borgbackup for nextcloud --- hosts/sachiel/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hosts') diff --git a/hosts/sachiel/configuration.nix b/hosts/sachiel/configuration.nix index 0f7d28c..124e75d 100644 --- a/hosts/sachiel/configuration.nix +++ b/hosts/sachiel/configuration.nix @@ -170,10 +170,20 @@ overwriteProtocol = "https"; trusted_domains = [ "cloud.schererleander.de" ]; logtimezone = "Europe/Berlin"; + log_type = "file"; }; phpOptions."opcache.interned_strings_buffer" = "64"; }; + services.borgbackup.jobs.nextcloud = { + paths = "/var/lib/nextcloud"; + repo = "ssh://h8xn8qvo@h8xn8qvo.repo.borgbase.com/./repo"; + encryption.mode = "none"; + environment.BORG_RSH = "ssh -i /home/${username}/.ssh/borgbase-nextcloud"; + compression = "auto,lzma"; + startAt = "daily"; + }; + security.auditd.enable = true; security.audit = { enable = true; -- cgit v1.3.1