summaryrefslogtreecommitdiffstats
path: root/makefu/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-04-17 13:08:36 +0200
committermakefu <github@syntax-fehler.de>2017-04-17 13:08:36 +0200
commiteeffa28de533a4a02f67f28ab789bbc89d084043 (patch)
tree8963ec3c1d3177475bab0eb7ce1b0f35d4023143 /makefu/2configs
parent270157937b67c9aeda0b8d245141e6943d78188f (diff)
m: init syncthing for hosts
Diffstat (limited to 'makefu/2configs')
-rw-r--r--makefu/2configs/ipfs.nix5
-rw-r--r--makefu/2configs/syncthing.nix11
2 files changed, 16 insertions, 0 deletions
diff --git a/makefu/2configs/ipfs.nix b/makefu/2configs/ipfs.nix
new file mode 100644
index 000000000..cc07e063d
--- /dev/null
+++ b/makefu/2configs/ipfs.nix
@@ -0,0 +1,5 @@
+{...}:
+{
+ services.ipfs.enable = true;
+ networking.firewall.allowedTCPPorts = [ 4001 ];
+}
diff --git a/makefu/2configs/syncthing.nix b/makefu/2configs/syncthing.nix
new file mode 100644
index 000000000..6b758ea2d
--- /dev/null
+++ b/makefu/2configs/syncthing.nix
@@ -0,0 +1,11 @@
+{...}:
+
+with import <stockholm/lib>; {
+ services.syncthing = {
+ enable = true;
+ openDefaultPorts = true;
+ useInotify = true;
+ group = "download";
+ };
+ users.extraGroups.download.gid = genid "download";
+}