Syncthing

From NixOS Wiki
Revision as of 15:02, 13 September 2020 by imported>Srid (Fix syntax)

Available as a standalone package:

nix-env -iA nixos.syncthing

It can also be enabled as a service. You'll typically want to set the user and the config dir, as with the default values ("syncthing" for the user, "/var/lib/syncthing" for the dir) you won't be able to access the files:

services = {
    syncthing = {
        enable = true;
        user = "myusername";
        dataDir = "/home/myusername/Documents";
        configDir = "/home/myusername/Documents/.config/syncthing";
    };
};