{
  config,
  lib,
  pkgs,
  ...
}:
{

  # for android development

  services.restic.backups = {
    localbackup = {
      exclude = [ "/home/*/.cache" ];
      initialize = false;
      passwordFile = "/run/secrets/restic-password";
      paths = [ "/home/teto/nextcloud" ];
      # TODO setup repo
      # repository = "/mnt/backup-hdd";
    };

    # remotebackup = {
    #   extraOptions = [
    #     "sftp.command='ssh backup@host -i /etc/nixos/secrets/backup-private-key -s sftp'"
    #   ];
    #   passwordFile = "/etc/nixos/secrets/restic-password";
    #   paths = [
    #     "/home"
    #   ];
    #   repository = "sftp:backup@host:/backups/home";
    #   timerConfig = {
    #     OnCalendar = "00:05";
    #     RandomizedDelaySec = "5h";
    #   };
    # };
  };
}
