diff --git a/hosts/yodaNas/syncthing.nix b/hosts/yodaNas/syncthing.nix index a3ad2f5..4061559 100644 --- a/hosts/yodaNas/syncthing.nix +++ b/hosts/yodaNas/syncthing.nix @@ -8,9 +8,22 @@ { config, pkgs, ... }: { + # Create user/group to be used by services.syncthing.user/group setting. + users.users."www-data" = { + group = "www-data"; + uid = 82; + }; + users.groups."www-data".gid = 82; + services = { syncthing = { enable = true; + + # Optionally change user and group. + # This can be useful if your data directories shall belong to a different user/group. + user = "82"; # Default: syncthing + group = "82"; # Default: syncthing + # Whether to open the default ports in the firewall: TCP/UDP 22000 for transfers and UDP 21027 for discovery. # With this enabled, the connection type of other syncthing clients in the same WiFi/LAN is "TCP LAN" and not "WAN Relay". openDefaultPorts = true; @@ -28,13 +41,13 @@ # Name of folder in Syncthing, also the folder ID. "Notes" = { # Path to shared folder. - path = "/mnt/data/syncthing/notes"; + path = "/mnt/data/jc-data/cloud.privacy1st.de/files_ncp/Notes"; # Which devices to share the folder with. devices = [ "yodaTux" "yodaTab" "yodaEnchilada" "yodaCheeseburger" ]; }; # Obsidian folder of Susan. "Obsidian" = { - path = "/mnt/data/syncthing/Obsidian"; + path = "/mnt/data/jc-data/cloud.privacy1st.de/files_susan/Obsidian"; devices = [ "susanLaptop" "susanHandy" ]; }; };