From 66207830ba90bf5ec7832ecf42767d1c0614f3a8 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 14 Jan 2025 04:30:14 +0000 Subject: [PATCH] add backups for actual budget --- hosts/flame/default.nix | 1 + modules/nixos/services/actualbudget.nix | 3 +++ 2 files changed, 4 insertions(+) diff --git a/hosts/flame/default.nix b/hosts/flame/default.nix index 8f68d77..5b4abe1 100644 --- a/hosts/flame/default.nix +++ b/hosts/flame/default.nix @@ -100,6 +100,7 @@ inputs.nixpkgs.lib.nixosSystem rec { endpoint = "s3.us-west-002.backblazeb2.com"; bucket = "noahmasur-backup"; accessKeyId = "0026b0e73b2e2c80000000005"; + resticBucket = "noahmasur-restic"; }; # Disable passwords, only use SSH key diff --git a/modules/nixos/services/actualbudget.nix b/modules/nixos/services/actualbudget.nix index 55b1fec..05c6373 100644 --- a/modules/nixos/services/actualbudget.nix +++ b/modules/nixos/services/actualbudget.nix @@ -66,6 +66,9 @@ # Configure Cloudflare DNS to point to this machine services.cloudflare-dyndns.domains = [ config.hostnames.budget ]; + # Backups + services.restic.backups.default.paths = [ "/var/lib/actualbudget" ]; + }; }