2021-08-08 10:27:08 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
relay.enable = false;
|
|
|
|
openDefaultPorts = true;
|
|
|
|
configDir = "/persist/var/lib/syncthing/";
|
|
|
|
dataDir = "/persist/data/syncthing/";
|
2022-01-27 21:52:49 +00:00
|
|
|
devices = {
|
|
|
|
raphael-laptop = {
|
|
|
|
addresses = []; # empty = dynamic
|
|
|
|
id = "72B3T74-NOMJV3X-EVJXTJF-5GGAEZB-ZDKBHXQ-VQNRYEU-YCPA2JP-L6NGAAG";
|
|
|
|
};
|
|
|
|
# zauberberg
|
|
|
|
conway = {
|
|
|
|
addresses = []; # empty = dynamic
|
|
|
|
id = "HV7IU2N-Q4W3A7F-BSASR43-OB575SM-47FY2UW-7N5GMFM-PX3LWRN-HXBXMQF";
|
|
|
|
};
|
|
|
|
};
|
2021-08-08 10:27:08 +00:00
|
|
|
|
2022-01-27 21:52:49 +00:00
|
|
|
folders = {
|
|
|
|
"/persist/data/syncthing/hacc/" = {
|
|
|
|
id = "qt2ly-xvvvs";
|
2022-09-12 17:05:32 +00:00
|
|
|
devices = [ "conway" "raphael-laptop"];
|
2022-01-27 21:52:49 +00:00
|
|
|
type = "receiveonly";
|
|
|
|
versioning = {
|
|
|
|
type = "simple";
|
|
|
|
params.keep = "10";
|
2021-08-08 10:27:08 +00:00
|
|
|
};
|
|
|
|
};
|
2022-01-27 21:53:17 +00:00
|
|
|
"/persist/data/syncthing/hacc_eV_vorstand/" = {
|
|
|
|
id = "twwt7-fxrsr";
|
2022-09-12 17:05:32 +00:00
|
|
|
devices = [ "conway" "raphael-laptop"];
|
2022-01-27 21:53:17 +00:00
|
|
|
# type = "receiveencrypted"; # no yet implemented
|
|
|
|
};
|
2021-08-08 10:27:08 +00:00
|
|
|
};
|
2022-01-27 21:53:17 +00:00
|
|
|
overrideFolders = false; # enables workaround for recieveencrypted
|
2021-08-08 10:27:08 +00:00
|
|
|
};
|
|
|
|
}
|