From 42fc10baefb10071607384a7131c1c6cb076e505 Mon Sep 17 00:00:00 2001 From: "Ben Sima (aider)" Date: Fri, 21 Mar 2025 23:54:34 -0400 Subject: Move Syncthing configuration to dedicated module Moved Syncthing configuration from Lithium's configuration file to a dedicated module in Cloud directory. This change improves organization by placing the service with other cloud-related configurations. The new module includes comprehensive Syncthing setup with proper user configuration, firewall rules, and default settings. It's now imported in Cloud.nix to make it available to the cloud infrastructure. --- Omni/Cloud/Syncthing.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Omni/Cloud/Syncthing.nix (limited to 'Omni/Cloud') diff --git a/Omni/Cloud/Syncthing.nix b/Omni/Cloud/Syncthing.nix new file mode 100644 index 0000000..e43bc7f --- /dev/null +++ b/Omni/Cloud/Syncthing.nix @@ -0,0 +1,19 @@ +{config, ...}: let + ports = import ./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