I am trying to backup my dropbox directory from my home directory to borgbase.com. I following this blog post: How to Set Up Borg Backup on NixOS - Xe Iaso and I have looked at NixOS 23.05 manual and https://nixos.org/manual/nixos/unstable/options.html#opt-services.borgbackup.jobs but I cannot seem to figure out the issue with why I am not the backup is not starting on borgbase. I have copied my root ssh public key to borgbase website too.
sudo ssh-keygen -N '' -t ed25519 -f /root/.ssh/id_ed25519_borgbase
This is a screenshot the nix code I have and the system status of the service created. I have also pasted the code below. Any help would be greatly appreciated.
{
config,
pkgs,
agenix,
...
}: {
# use agenix for passCommand
age.identityPaths = [
"/root/.ssh/id_ed25519_borgbase"
];
age.secrets.borgbackup-xps17-nixos.file = ../../secrets/borgbackup-xps17-nixos.age;
services.borgbackup.jobs = {
dropbox_backup = {
paths = ["/home/morp/Dropbox/"];
exclude = ["'**/.cache'"];
repo = "r0el6zc7@r0el6zc7.repo.borgbase.com:repo";
encryption = {
mode = "repokey-blake2";
passCommand = "cat ${config.age.secrets.borgbackup-xps17-nixos.path}";
};
environment = {BORG_RSH = "ssh -i /root/.ssh/id_ed25519_borgbase ";};
compression = "auto,zstd";
startAt = "daily";
};
};
}