summaryrefslogtreecommitdiff
path: root/Omni/Cloud
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Cloud')
-rw-r--r--Omni/Cloud/Syncthing.nix19
1 files changed, 19 insertions, 0 deletions
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
+ };
+ };
+ };
+}