services/matrix: backup synapse media repo for now

This commit is contained in:
Lu Wang 2024-12-19 14:00:02 +08:00
parent 624323f07a
commit 8474837509
Signed by: rebmit
SSH key fingerprint: SHA256:3px8QV1zEerIrEWHaqtH5rR9kjetyRST5EipOPrd+bU
2 changed files with 6 additions and 1 deletions

View file

@ -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, config,
pkgs, pkgs,

View file

@ -1,7 +1,7 @@
# Portions of this file are sourced from # Portions of this file are sourced from
# https://github.com/NickCao/flakes/blob/3b03efb676ea602575c916b2b8bc9d9cd13b0d85/nixos/hcloud/hio0/matrix.nix # 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 # https://github.com/linyinfeng/dotfiles/blob/b618b0fd16fb9c79ab7199ed51c4c0f98a392cea/nixos/profiles/services/matrix/default.nix
{ config, pkgs, ... }: { config, ... }:
{ {
sops.secrets."synapse/signing-key" = { sops.secrets."synapse/signing-key" = {
sopsFile = config.sops.secretFiles.host; sopsFile = config.sops.secretFiles.host;
@ -78,4 +78,6 @@
reverse_proxy /_synapse/* 127.0.0.1:${toString config.networking.ports.matrix-synapse} reverse_proxy /_synapse/* 127.0.0.1:${toString config.networking.ports.matrix-synapse}
''; '';
}; };
services.restic.backups.b2.paths = [ "/var/lib/matrix-synapse" ];
} }