backup gitea repos
This commit is contained in:
parent
bf3ae0aa87
commit
ce69b57687
1 changed files with 4 additions and 3 deletions
|
@ -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}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue