nixos-config/nixos/services/syncthing.service.nix

17 lines
384 B
Nix

{
pkgs,
config,
lib,
...
}: {
services = {
syncthing = {
enable = true;
user = "${config.myUserName}";
dataDir = "/home/${config.myUserName}/Documents";
configDir = "/home/${config.myUserName}/Documents/.config/syncthing";
};
};
networking.firewall.allowedTCPPorts = [8384 22000];
networking.firewall.allowedUDPPorts = [22000 21027];
}