Syncthing: Difference between revisions
imported>LuisChDev Created page with "Available as a standalone package: <nowiki>nix-env -iA nixos.syncthing</nowiki> It can also be enabled as a service. You'll typically want to set the user and the config di..." |
imported>Srid m Fix syntax |
||
Line 11: | Line 11: | ||
enable = true; | enable = true; | ||
user = "myusername"; | user = "myusername"; | ||
dataDir = "/home/myusername/ | dataDir = "/home/myusername/Documents"; | ||
configDir = "/home/myusername/ | configDir = "/home/myusername/Documents/.config/syncthing"; | ||
} | }; | ||
} | }; | ||
</nowiki> | </nowiki> |
Revision as of 15:02, 13 September 2020
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"; }; };