about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-13 19:48:59 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-13 19:48:59 -0700
commitc643226847abdedc9f15417eaecb2341db96941a (patch)
tree3c4a55a7f76753138a00720ef5e91dde621f2253
parentnix: update dependencies (diff)
downloadworld-c643226847abdedc9f15417eaecb2341db96941a.tar.gz
modules: fix configuration for syncthing
The `documents` folder was not being synced.
-rw-r--r--docs/tools.org6
-rw-r--r--modules/services/syncthing/default.nix4
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/tools.org b/docs/tools.org
index 17c9110..8dfebe1 100644
--- a/docs/tools.org
+++ b/docs/tools.org
@@ -1,5 +1,11 @@
 #+TITLE: Collection of recipes for various tools
 
+* syncthing
+** connection to the remote UI
+The web UI for syncthing is binded to localhost. To access the UI of a remote host, create a SSH tunnel:
+#+begin_src sh
+ssh -L 1235:localhost:8384 -N -f 192.168.0.106
+#+end_src
 * yt-dlp
 - use =--merge-output-format=mkv=
 - check what's the best audio and video for a video
diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix
index c4739d6..7f7ed3a 100644
--- a/modules/services/syncthing/default.nix
+++ b/modules/services/syncthing/default.nix
@@ -17,9 +17,9 @@ in {
       cert = secrets."syncthing/cert".path;
       key = secrets."syncthing/key".path;
 
-      folders.Sync = {
+      folders.Documents = {
         path = "/home/fcuny/documents";
-        devices = [ "tahoe" ];
+        devices = [ "aptos" "tahoe" ];
       };
 
       folders.PixelCamera = {