diff options
| author | schererleander <leander@schererleander.de> | 2025-10-27 10:28:12 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-10-27 10:28:12 +0100 |
| commit | cb2cd7068d5a4e48586f1f1c89a4fd4ffce3d3b0 (patch) | |
| tree | 3f308e3f7dd1e8cb7413ba537d135b44e54a04a5 /hosts/sachiel/configuration.nix | |
| parent | d532a0f27dfa1dd5efbad0c579540ce83a112f3d (diff) | |
feat: setup, configure borgbackup for nextcloud
Diffstat (limited to 'hosts/sachiel/configuration.nix')
| -rw-r--r-- | hosts/sachiel/configuration.nix | 10 |
1 files changed, 10 insertions, 0 deletions
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; |
