helm/profiles/syncthing/default.nix
2022-07-01 20:01:28 +10:00

20 lines
394 B
Nix

{ pkgs, ... }:
{
services.syncthing = {
enable = true;
user = "anish";
dataDir = "/home/anish/usr/syncthing";
guiAddress = "0.0.0.0:8384";
};
mossnet.backup = {
enable = true;
name = "syncthing";
paths = [ "/home/anish/usr/syncthing" ];
};
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
}