summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-04-16 23:35:25 +0200
committerlassulus <lass@lassul.us>2017-04-18 21:14:54 +0200
commitb3463a3b8227a0732b1c3c4c90998f24c8ab1edf (patch)
treec38e5891974c7d7ea68aa7b8d697046c50cecfc3 /lass/2configs
parentcb36b4fb7cd4c51b89328a06ba0b994d627813aa (diff)
l 2: add syncthing.nix
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/syncthing.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/lass/2configs/syncthing.nix b/lass/2configs/syncthing.nix
new file mode 100644
index 000000000..cef43d1e6
--- /dev/null
+++ b/lass/2configs/syncthing.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, ... }:
+with import <stockholm/lib>;
+{
+ services.syncthing = {
+ enable = true;
+ useInotify = true;
+ };
+ krebs.iptables.tables.filter.INPUT.rules = [
+ { predicate = "-p tcp --dport 22000"; target = "ACCEPT";}
+ { predicate = "-p udp --dport 21027"; target = "ACCEPT";}
+ ];
+}