From 847483750937eee729c87f51234b07c061f77dd0 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 19 Dec 2024 14:00:02 +0800 Subject: [PATCH] services/matrix: backup synapse media repo for now --- nixos/profiles/services/matrix/mautrix-telegram.nix | 3 +++ nixos/profiles/services/matrix/synapse.nix | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/profiles/services/matrix/mautrix-telegram.nix b/nixos/profiles/services/matrix/mautrix-telegram.nix index 7291b56..dd325d6 100644 --- a/nixos/profiles/services/matrix/mautrix-telegram.nix +++ b/nixos/profiles/services/matrix/mautrix-telegram.nix @@ -1,3 +1,6 @@ +# Portions of this file are sourced from +# https://github.com/NickCao/flakes/blob/3b03efb676ea602575c916b2b8bc9d9cd13b0d85/nixos/hcloud/hio0/matrix.nix +# https://github.com/linyinfeng/dotfiles/blob/b618b0fd16fb9c79ab7199ed51c4c0f98a392cea/nixos/profiles/services/matrix/default.nix { config, pkgs, diff --git a/nixos/profiles/services/matrix/synapse.nix b/nixos/profiles/services/matrix/synapse.nix index ceae398..237d134 100644 --- a/nixos/profiles/services/matrix/synapse.nix +++ b/nixos/profiles/services/matrix/synapse.nix @@ -1,7 +1,7 @@ # Portions of this file are sourced from # https://github.com/NickCao/flakes/blob/3b03efb676ea602575c916b2b8bc9d9cd13b0d85/nixos/hcloud/hio0/matrix.nix # https://github.com/linyinfeng/dotfiles/blob/b618b0fd16fb9c79ab7199ed51c4c0f98a392cea/nixos/profiles/services/matrix/default.nix -{ config, pkgs, ... }: +{ config, ... }: { sops.secrets."synapse/signing-key" = { sopsFile = config.sops.secretFiles.host; @@ -78,4 +78,6 @@ reverse_proxy /_synapse/* 127.0.0.1:${toString config.networking.ports.matrix-synapse} ''; }; + + services.restic.backups.b2.paths = [ "/var/lib/matrix-synapse" ]; }