17 lines
334 B
Nix
17 lines
334 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
services.syncthing = {
|
|
enable = true;
|
|
user = "anish";
|
|
group = "users";
|
|
dataDir = "/home/anish/";
|
|
configDir = "/home/anish/.config/syncthing";
|
|
};
|
|
|
|
# TODO reproducible shares?
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
|
|
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
|
}
|