From a20827fc0a7eb9a5bc9ae559b426b8c3f357ce3c Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 25 Mar 2025 11:41:20 -0400 Subject: Enable syncthing on Beryllium too This moves syncthing from the cloud only, and onto Beryllium as well. Also it gets rid of the nginx config because I don't really need access to it remotely like that. --- Omni/Syncthing.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Omni/Syncthing.nix (limited to 'Omni/Syncthing.nix') diff --git a/Omni/Syncthing.nix b/Omni/Syncthing.nix new file mode 100644 index 0000000..fab013b --- /dev/null +++ b/Omni/Syncthing.nix @@ -0,0 +1,19 @@ +{...}: let + ports = import ./Cloud/Ports.nix; +in { + services.syncthing = { + enable = true; + guiAddress = "0.0.0.0:${toString ports.syncthing-gui}"; + openDefaultPorts = true; + systemService = true; + configDir = "/var/lib/syncthing/.config/syncthing"; + + # Default settings for new users + settings = { + options = { + relaysEnabled = true; + urAccepted = -1; # Usage reporting: -1 = not decided, 0 = no, 1 = yes + }; + }; + }; +} -- cgit v1.2.3