aboutsummaryrefslogtreecommitdiff
path: root/hosts/sachiel/configuration.nix
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-10-27 10:28:12 +0100
committerschererleander <leander@schererleander.de>2025-10-27 10:28:12 +0100
commitcb2cd7068d5a4e48586f1f1c89a4fd4ffce3d3b0 (patch)
tree3f308e3f7dd1e8cb7413ba537d135b44e54a04a5 /hosts/sachiel/configuration.nix
parentd532a0f27dfa1dd5efbad0c579540ce83a112f3d (diff)
feat: setup, configure borgbackup for nextcloud
Diffstat (limited to 'hosts/sachiel/configuration.nix')
-rw-r--r--hosts/sachiel/configuration.nix10
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;