OK, I have solved my syncthing-related problems. It turns out that I misused service.syncthing.dataDir config option. I thought it is pre-defined data directory to syncronize, but it is configuration-only directory in reality!
Regards, Sergey 2015-09-21 22:28 GMT+03:00 Sergey Mironov <grr...@gmail.com>: > 2015-09-21 14:39 GMT+03:00 zimbatm <zimb...@zimbatm.com>: >> Hi Sergey, >> >> Have you setup syncthing using the config.services.syncthing.enable = true >> in /etc/nixos/configuration.nix ? >> The service is creating /var/lib/syncthing by default. This is a better >> place to put the files, home folders should be private. >> >> Cheers, >> z >> >> On Mon, 21 Sep 2015 at 12:19 Sergey Mironov <grr...@gmail.com> wrote: >>> >>> Hi, List! I have two questions regarding Syncthing synchronization >>> service. They may be not strongly related to Nix but I'd like to ask >>> here before going to the upstream's forum. >>> >>> 1) I've upgraded NixOS installations on both desktop and server >>> workstations recently. After the upgrade I noticed that syncthing IDs >>> were changed, so I had to re-setup the connection using Web-GUI. Is it >>> possible to preserve the IDs ? Or should we think about making this >>> type of configuration static by providing NixOS wrappers for >>> 'device'/'folders' options? (I am not sure if it is possible or not) >>> >>> 2) I keep my synced data in the /home/syncthing folder and I want it >>> to be of 'syncthing:users' user/group with 770 permissions. Older >>> NixOS setup seems to handle it well, but the new one seems to reset >>> the permissions to 'syncthing:root' 700 every hour. Could it be a >>> systemd new behavior or it's the syncthing who does this? >>> >>> Regards, >>> Sergey >>> _______________________________________________ >>> nix-dev mailing list >>> nix-dev@lists.science.uu.nl >>> http://lists.science.uu.nl/mailman/listinfo/nix-dev > > > Zimbatm, I would have faced another kind of problems with disabled > syncthing :) Yes, I set syncthing.enable to true. Here is my config > > { config, pkgs, ... } : > { > services.syncthing.enable = true; > services.syncthing.dataDir = "/home/syncthing"; > > users.extraUsers = { > > syncthing = { > group = "users"; > home = "/home/syncthing"; > useDefaultShell = true; > }; > > }; > } > > I use /home as a storage for two reasons: 1) I run syncthing as a > separate user, I think its not bad to put it in its own home. 2) /home > is mounted on separate hard drive partition, and this partition is > large. / (root) lives in a limited amount of space, so I don't want to > garbage it with user data. > > Regards, > Sergey _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev