summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/syncthing.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-04-17 13:08:36 +0200
committerlassulus <lass@lassul.us>2017-04-18 21:14:56 +0200
commitd53824e7b551759854c6e0ae77411c179a168754 (patch)
tree0a6106dd364cc111d264748b7936bd17de8b9e35 /makefu/2configs/syncthing.nix
parentc577d6b9972203941c577d9fb5488345d5fe84b5 (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 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";
+}