2023-07-17 16:50:07 +02:00
|
|
|
let
|
|
|
|
user = "adrielus";
|
|
|
|
group = "syncthing";
|
|
|
|
in
|
2023-07-07 21:25:05 +02:00
|
|
|
{
|
|
|
|
services.syncthing = {
|
2023-07-17 16:50:07 +02:00
|
|
|
inherit user group;
|
2023-07-07 21:25:05 +02:00
|
|
|
enable = true;
|
|
|
|
|
|
|
|
openDefaultPorts = true;
|
|
|
|
|
2023-07-17 16:50:07 +02:00
|
|
|
configDir = "/persist/state/home/adrielus/Syncthing/.config/syncthing";
|
2023-07-07 21:25:05 +02:00
|
|
|
dataDir = "/persist/data/syncthing";
|
|
|
|
|
|
|
|
overrideDevices = true;
|
|
|
|
overrideFolders = true;
|
|
|
|
|
|
|
|
devices = {
|
|
|
|
"enceladus" = { id = "QWOAERM-V2FNXPI-TB7NFUS-LKW7JTB-IZY4OEZ-FYDPJNP-6IKPW4Y-YREXDQM"; };
|
|
|
|
};
|
|
|
|
|
2023-07-17 16:50:07 +02:00
|
|
|
extraOptions = {
|
|
|
|
options = {
|
|
|
|
crashReportingEnabled = false;
|
|
|
|
};
|
|
|
|
};
|
2023-07-07 21:25:05 +02:00
|
|
|
};
|
|
|
|
}
|