From 75c76ef0326b2dd4ad11b0d0925c8162a7de2858 Mon Sep 17 00:00:00 2001 From: Nettika Date: Sun, 6 Oct 2024 18:35:00 -0700 Subject: [PATCH] Fix restic daily backups --- hosts/marauder/backup.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hosts/marauder/backup.nix b/hosts/marauder/backup.nix index 9cacda2..df0151e 100755 --- a/hosts/marauder/backup.nix +++ b/hosts/marauder/backup.nix @@ -1,11 +1,5 @@ { pkgs, config, secrets, ... }: { - environment.systemPackages = with pkgs; [ - restic - libnotify - backblaze-b2 - ]; - systemd.services = { notify-backup-b2-failed = { description = "Notify on failed backup to B2"; @@ -26,8 +20,8 @@ environment.etc = { "restic-env".text = '' - export B2_ACCOUNT_ID="${secrets.b2.accountId}" - export B2_ACCOUNT_KEY="${secrets.b2.accountKey}" + B2_ACCOUNT_ID="${secrets.b2.accountId}" + B2_ACCOUNT_KEY="${secrets.b2.accountKey}" ''; "restic-password".text = secrets.restic.password; };