diff --git a/profiles/syncthing/default.nix b/profiles/syncthing/default.nix new file mode 100644 index 00000000..3619946b --- /dev/null +++ b/profiles/syncthing/default.nix @@ -0,0 +1,19 @@ +{ 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 ]; +}