From 28e2c6497808ee3546ac233d311a8144b3cc439b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 21 Apr 2022 20:12:39 -0700 Subject: 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). --- modules/services/syncthing/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'modules/services/syncthing') 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; + }; }; }; }; -- cgit 1.4.1