35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
services.syncthing = {
|
||
|
enable = true;
|
||
|
user = "xeovalyte";
|
||
|
dataDir = "/home/xeovalyte";
|
||
|
overrideDevices = true;
|
||
|
overrideFolders = true;
|
||
|
openDefaultPorts = true;
|
||
|
settings = {
|
||
|
devices = {
|
||
|
"xv-server" = {
|
||
|
id = "DYBGKGM-I7JM6NG-EV7EGYY-NZL5WCG-CSDSJCJ-B4Q7AOP-5YVQYAZ-ETLQWA5";
|
||
|
addresses = [
|
||
|
"dynamic"
|
||
|
"tcp://ddns.xeovalyte.com:22000"
|
||
|
"quick://ddns.xeovalyte.com:22000"
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
folders = {
|
||
|
"xeovalyte-documents" = { # Name of folder in Syncthing, also the folder ID
|
||
|
path = "/home/xeovalyte/Documents"; # Which folder to add to Syncthing
|
||
|
devices = [ "xv-server" ]; # Which devices to share the folder with
|
||
|
};
|
||
|
"xeovalyte-logseq" = { # Name of folder in Syncthing, also the folder ID
|
||
|
path = "/home/xeovalyte/Logseq"; # Which folder to add to Syncthing
|
||
|
devices = [ "xv-server" ]; # Which devices to share the folder with
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|