nixos-config/nixos/services/syncthing.service.nix
Zhongheng Liu b716af87bd
fix: change dataDir and configDir
This resolves the issue of not being able to sync the whole directory

because of the existence of protected files.
2024-08-20 14:26:32 +08:00

17 lines
382 B
Nix

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