summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/syncthing.nix
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/syncthing.nix
parent270157937b67c9aeda0b8d245141e6943d78188f (diff)
m: init syncthing for hosts
Diffstat (limited to 'makefu/2configs/syncthing.nix')
-rw-r--r--makefu/2configs/syncthing.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/makefu/2configs/syncthing.nix b/makefu/2configs/syncthing.nix
new file mode 100644
index 00000000..6b758ea2
--- /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";
+}