From f0e0cf27726dd89cf5a6c9336c02a7e41b8e1c5a Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Mon, 11 Dec 2023 23:39:09 +0000 Subject: [PATCH] Refactor deprecated borgmatic.settings.location --- hosts/odyssey/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hosts/odyssey/default.nix b/hosts/odyssey/default.nix index f27e671..0fe5f56 100644 --- a/hosts/odyssey/default.nix +++ b/hosts/odyssey/default.nix @@ -57,14 +57,12 @@ services.borgmatic = { enable = true; settings = { - location = { - source_directories = [ - "/home/jordan/Documents" - ]; - repositories = [ - "ssh://iqwu22oq@iqwu22oq.repo.borgbase.com/./repo" - ]; - }; + source_directories = [ + "/home/jordan/Documents" + ]; + repositories = [ + { label = "borgbase"; path = "ssh://iqwu22oq@iqwu22oq.repo.borgbase.com/./repo"; } + ]; storage = { encryption_passcommand = "cat ${config.age.secrets.odyssey_borg_passphrase.path}"; ssh_command = "ssh -i /etc/ssh/ssh_host_ed25519_key";