refactor: backup syncthing

This commit is contained in:
wi11-holdsworth 2025-09-29 22:47:04 +10:00
parent 00c0979552
commit 5e02f19583

View file

@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
userName,
hostName,
...
@ -62,6 +63,27 @@ in
};
};
# backup
borgbackup.jobs =
# we only need one syncthing host to be backed up
# choose server because borgbackup is the most fleshed out
# on srv currently
if userName == "srv" then
import ../backup.nix feature
{
paths = [
"/home/srv/.config/syncthing"
"/home/srv/Sync"
];
}
{
inherit config;
inherit lib;
inherit pkgs;
}
else
null;
# reverse proxy
nginx = {
virtualHosts."${feature}.fi33.buzz" = {