use backup module on chunk

This commit is contained in:
cy 2024-12-30 22:13:45 -05:00
parent f23cc43287
commit b5f231ac01
3 changed files with 21 additions and 65 deletions

20
hosts/chunk/backup.nix Normal file
View file

@ -0,0 +1,20 @@
{
config,
...
}:
{
my.backup = {
enable = true;
jobName = "crashRsync";
paths = [
"/vw-data"
];
exclude = [
# podman stuff
"/var/lib/containers"
];
repo = "crash";
passFile = config.sops.secrets."borg/rsyncnet".path;
sshKeyFile = config.sops.secrets."rsyncnet/id_ed25519".path;
};
}