about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/services/default.nix1
-rw-r--r--modules/services/syncthing/default.nix11
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/services/default.nix b/modules/services/default.nix
index 693872f..88d8145 100644
--- a/modules/services/default.nix
+++ b/modules/services/default.nix
@@ -16,6 +16,7 @@
     ./rclone
     ./samba
     ./ssh-server
+    ./syncthing
     ./tailscale
     ./thermald
     ./tlp
diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix
new file mode 100644
index 0000000..3b6f34f
--- /dev/null
+++ b/modules/services/syncthing/default.nix
@@ -0,0 +1,11 @@
+{ config, pkgs, lib, ... }:
+let cfg = config.my.services.syncthing;
+in {
+  services.syncthing = {
+    enable = true;
+    openDefaultPorts = true;
+    user = config.users.users.fcuny;
+    group = "users";
+    dataDir = "${config.users.users.fcuny.home}/.syncthing";
+  };
+}