about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-21 20:12:39 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-21 20:12:39 -0700
commit28e2c6497808ee3546ac233d311a8144b3cc439b (patch)
treee867fc0040e6f2a9b5bd75895ac7f1e169c35aee
parentsyncthing: configure devices and folders (diff)
downloadworld-28e2c6497808ee3546ac233d311a8144b3cc439b.tar.gz
syncthing: add pixel (my phone) to known devices
Copy the pictures from the phone on all my machines. Don't sync the
documents on the phone (at least for now).
Diffstat (limited to '')
-rw-r--r--modules/services/syncthing/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix
index 19f0c62..c4739d6 100644
--- a/modules/services/syncthing/default.nix
+++ b/modules/services/syncthing/default.nix
@@ -19,7 +19,13 @@ in {
 
       folders.Sync = {
         path = "/home/fcuny/documents";
-        devices = attrNames config.services.syncthing.devices;
+        devices = [ "tahoe" ];
+      };
+
+      folders.PixelCamera = {
+        path = "/home/fcuny/media/pixel/camera";
+        id = "pixel_5_vwsr-photos";
+        devices = lib.attrNames config.services.syncthing.devices;
       };
 
       devices = {
@@ -33,6 +39,11 @@ in {
             "4Y36C3Y-LUTO6LD-JXNV73B-FLXSTNP-5Q3CSPY-HESHTPH-EDYA54K-WEICJAJ";
           introducer = true;
         };
+        pixel = {
+          id =
+            "J3JQFCJ-MY5RCF7-4NXMVU5-2JECKWO-UHFUS5T-KO64EMB-RNUV4F2-ZQ7Z6A6";
+          introducer = false;
+        };
       };
     };
   };