1
Fork 0
satellite/hosts/nixos/common/optional/syncthing.nix

33 lines
755 B
Nix

let
user = "adrielus";
group = "syncthing";
in
{
services.syncthing = {
inherit user group;
enable = true;
openDefaultPorts = true;
configDir = "/persist/state/home/adrielus/Syncthing/.config/syncthing";
dataDir = "/persist/data/syncthing";
overrideDevices = true;
overrideFolders = true;
settings = {
devices = {
enceladus.id = "QWOAERM-V2FNXPI-TB7NFUS-LKW7JTB-IZY4OEZ-FYDPJNP-6IKPW4Y-YREXDQM";
lapetus.id = "VVHM7RC-ZSDOZJI-EGBIJR4-2DOGAXG-OEJZWSH-OYUK5XT-7CDMWSL-3AVM2AZ";
tethys.id = "NGHX5G4-IY3ZXL2-NQMMRQV-2GDQLC6-LIDWSNG-DAJUAQH-KBAP64V-55K2LQ6";
};
extraOptions = {
options = {
crashReportingEnabled = false;
};
};
};
};
}