From 3f0601c590a121fc05a8c0851f5277c603f73138 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 3 Dec 2023 21:59:56 +0000 Subject: [PATCH] Setup backups on odyssey --- hosts/odyssey/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hosts/odyssey/default.nix b/hosts/odyssey/default.nix index a91581b..2e59689 100644 --- a/hosts/odyssey/default.nix +++ b/hosts/odyssey/default.nix @@ -69,6 +69,29 @@ with lib.my; }; }; + services.borgmatic = { + enable = true; + settings = { + location = { + source_directories = [ + "/home/jordan/Documents" + ]; + repositories = [ + "ssh://s6ac8m61@s6ac8m61.repo.borgbase.com/./repo" + ]; + }; + storage = { + encryption_passcommand = "cat /run/agenix/odyssey_borg_passphrase"; + ssh_command = "ssh -i /etc/ssh/ssh_host_ed25519_key"; + }; + retention = { + keep_daily = 7; + keep_weekly = 4; + keep_monthly = 6; + }; + }; + }; + modules = { desktop = { apps.qbittorrent.enable = true;