users/foo-dogsquared/services/backup: add Ludusavi and update Hetzner Storage Box Borg repo config

This commit is contained in:
Gabriel Arazas 2024-10-04 16:29:05 +08:00
parent 6123ae2c5e
commit 606a44954b
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -86,7 +86,10 @@ in
label = "remote-hetzner-boxes"; label = "remote-hetzner-boxes";
}; };
extra_borg_options = { extra_borg_options = {
init = "--make-parent-dirs"; init = builtins.toString [
"--make-parent-dirs"
"--encryption" "repokey-blake2"
];
}; };
}; };
}; };
@ -126,5 +129,23 @@ in
}; };
}) })
]; ];
# My game backups.
services.ludusavi = {
enable = true;
startAt = "daily";
settings = let
backup_path = "${config.xdg.cacheHome}/ludusavi/backups";
in {
manifest.url = "https://raw.githubusercontent.com/mtkennerly/ludusavi-manifest/master/data/manifest.yaml";
roots = [
{ path = "${config.home.homeDirectory}/.steam"; store = "steam"; }
{ path = "${config.xdg.dataHome}/lutris"; store = "lutris"; }
];
backup.path = backup_path;
restore.path = backup_path;
};
};
}; };
} }