From 0b15a58e570d3c65c4fc611fbd99f3585328d43c Mon Sep 17 00:00:00 2001 From: Anish L Date: Fri, 1 Jul 2022 20:01:28 +1000 Subject: [PATCH] mossnet syncthing --- profiles/syncthing/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 profiles/syncthing/default.nix 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 ]; +}