From d08d53398e60dd1740b2707e0313bfa1b7c15d49 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 28 Jan 2024 19:00:51 +0000 Subject: [PATCH] Move borgmatic config to global scope --- modules/services/borgmatic/default.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/modules/services/borgmatic/default.nix b/modules/services/borgmatic/default.nix index 05cf051..609bfec 100644 --- a/modules/services/borgmatic/default.nix +++ b/modules/services/borgmatic/default.nix @@ -39,15 +39,11 @@ in { repositories = [ { label = "borgbase"; path = cfg.repoPath; } ]; - storage = { - encryption_passcommand = "cat ${config.age.secrets."passwords/services/borg/${hostname}-passphrase".path}"; - ssh_command = "ssh -i /etc/ssh/ssh_host_ed25519_key"; - }; - retention = { - keep_daily = 7; - keep_weekly = 4; - keep_monthly = 6; - }; + encryption_passcommand = "cat ${config.age.secrets."passwords/services/borg/${hostname}-passphrase".path}"; + ssh_command = "ssh -i /etc/ssh/ssh_host_ed25519_key"; + keep_daily = 7; + keep_weekly = 4; + keep_monthly = 6; }; };