refactor: backup syncthing
This commit is contained in:
parent
00c0979552
commit
5e02f19583
1 changed files with 22 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
userName,
|
userName,
|
||||||
hostName,
|
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
|
# reverse proxy
|
||||||
nginx = {
|
nginx = {
|
||||||
virtualHosts."${feature}.fi33.buzz" = {
|
virtualHosts."${feature}.fi33.buzz" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue