nixos/dafoe/services/restic.nix
2024-11-06 14:03:40 +01:00

15 lines
391 B
Nix
Executable file

{
services.restic.backups = {
giteaBackup = {
paths = [ "/forgejo/dump" ];
environmentFile = "${../../nix-secrets/dafoe/gitea/backupCreds}";
passwordFile = "${../../nix-secrets/dafoe/restic/password}";
repository = "b2:gitea-willem";
initialize = true;
timerConfig = {
OnCalendar = "04:00";
Persistent = true;
};
};
};
}