{ config, ... }: { # Root SSH programs.ssh = { extraConfig = '' Host dnsc-storage AddKeysToAgent yes Hostname u295965.your-storagebox.de User u295965 IdentityFile /root/.ssh/id_ed25519 IdentitiesOnly yes Port 23 ''; }; services.restic.backups = { "dnsc-storage" = { initialize = true; passwordFile = config.age.secrets."restic/password".path; repository = "sftp:dnsc-storage:restic/dnsc-server"; createWrapper = true; paths = [ "/home/dennis/notes" "/main/share" "/data/actual-server" ]; pruneOpts = [ "--keep-last 3" ]; timerConfig = { onCalendar = "daily"; Persistent = true; RandomizedDelaySec = "5h"; }; }; }; }