aboutsummaryrefslogtreecommitdiff
path: root/nixos/services/syncthing.service.nix
blob: bd5324325126aca06f1538ae99d07fe0cd7d33b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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 ];
}