enhancement/15 #16
1 changed files with 22 additions and 0 deletions
|
|
@ -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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue