nixos/willem/services/restic.nix

17 lines
545 B
Nix
Raw Permalink Normal View History

2024-02-16 13:59:46 +01:00
{
services.restic.backups = {
giteaBackup = {
paths = [ "/gitea/dump" ];
# environmentFile = "/home/leonv/nixos/willem/private/gitea_backupCreds";
# passwordFile = "/home/leonv/nixos/willem/private/restic-password";
environmentFile = "${../../nix-secrets/willem/gitea/backupCreds}";
passwordFile = "${../../nix-secrets/willem/restic/password}";
repository = "b2:gitea-willem";
initialize = true;
timerConfig = {
OnCalendar = "04:00";
Persistent = true;
};
};
};
}