From 70934d84de4f5740853cb323f76df9efa50c1835 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 9 Apr 2025 00:01:20 -0400 Subject: syncthing: Synctrain for iPad, add Steam Deck extra/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Still need to remove Möbius and migrate iPhone to Synctrain also. This should also properly set /srv/syncthing group permissions. --- hostnix/elmo/syncthing.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'hostnix/elmo/syncthing.nix') diff --git a/hostnix/elmo/syncthing.nix b/hostnix/elmo/syncthing.nix index ca91d5a..5767fd7 100644 --- a/hostnix/elmo/syncthing.nix +++ b/hostnix/elmo/syncthing.nix @@ -10,9 +10,7 @@ let }; in { - systemd.tmpfiles.rules = [ - "d /srv/syncthing 0770 syncthing syncthing" # defaults to 0700 - ]; + users.users.syncthing.homeMode = "0750"; # May be of limited usefulness because Syncthing generally ignores umask. systemd.services.syncthing = { @@ -38,6 +36,10 @@ in id = "F5APH5K-XXO454B-6YU4BTT-YPHF4KT-OD7YF5Y-JTWJRSU-UNJ2KZK-IVJZNQT"; autoAcceptFolders = true; }; + "Joes-iPad" = { + id = "LJRC74M-EKUZO73-GAZPTUL-ZIQXHKR-IWR5Y5X-VDOPV6T-3BNOTR3-6CTG3AG"; + autoAcceptFolders = true; + }; "iPad" = { id = "U7D7667-RFEFHXX-TUJGGII-CE62S6P-YC6MWNV-4LBJ4YJ-5ZUZVPT-GBC5PQH"; autoAcceptFolders = true; @@ -73,6 +75,12 @@ in versioning = staggeredVersioning; devices = [ "steamdeck" ]; }; + "Deck/extra" = { + id = "jzncl-7nkcq"; + path = "~/Deck/extra"; + versioning = staggeredVersioning; + devices = [ "steamdeck" ]; + }; "Documents" = { id = "bhemx-9nh3v"; path = "~/Documents"; @@ -83,7 +91,7 @@ in id = "kvq6q-axjhu"; path = "~/Downloads"; versioning = staggeredVersioning; - devices = [ "sparky" ]; + devices = [ "sparky" "Joes-iPad" ]; }; "Game/Epic Games/TheTalosPrinciple/UserData" = { id = "vek7u-iausx"; @@ -117,6 +125,7 @@ in "Asus Nexus 7" "DESKTOP-SFVBFBU" "Joes-iPhone-6" + "Joes-iPad" "iPad" "penguin" "sparky" @@ -136,8 +145,7 @@ in "iPad" = { id = "qtzmu-fqdrs"; path = "~/iPad"; - versioning = staggeredVersioning; - devices = [ "iPad" ]; + devices = [ "Joes-iPad" "iPad" ]; }; }; }; -- cgit v1.3.1