backup gitea repos

This commit is contained in:
Cyryl Płotnicki 2022-11-08 13:46:01 +00:00
parent bf3ae0aa87
commit ce69b57687

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }: rec {
environment.systemPackages = with pkgs; [ restic ];
@ -13,10 +13,11 @@
services = {
restic.backups.b2 = {
passwordFile = "/run/secrets/restic-backups-b2-repo-password";
paths = [ "/var/lib/foundryvtt" ];
paths = [ "/var/lib/foundryvtt" "/var/lib/gitea" ];
repository = "b2:cyplo-restic-vpsfree";
timerConfig = { OnCalendar = "hourly"; };
environmentFile = "/etc/nixos/secrets/b2-env";
environmentFile =
"${config.sops.secrets.restic-backups-b2-environment.path}";
};
};