summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 14:25:02 +0200
committerAlan Pearce2017-09-09 16:49:30 +0200
commitc24e26149c78725b33c68b6bce46cc9fc79f9bea (patch)
tree1d867a2019e2e52a6d86802f5488028a8db9fa06
parenta5b0892e4f3d255d695f6a54219e1f5edf21c725 (diff)
downloadnixfiles-c24e26149c78725b33c68b6bce46cc9fc79f9bea.tar.lz
nixfiles-c24e26149c78725b33c68b6bce46cc9fc79f9bea.tar.zst
nixfiles-c24e26149c78725b33c68b6bce46cc9fc79f9bea.zip
Add syncthing configuration
-rw-r--r--modules/syncthing.nix11
-rw-r--r--satoshipad.nix1
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/syncthing.nix b/modules/syncthing.nix
new file mode 100644
index 00000000..9c9b7787
--- /dev/null
+++ b/modules/syncthing.nix
@@ -0,0 +1,11 @@
+{ config, pkgs, ... }:
+
+{ services.syncthing = {
+    enable = true;
+    user = "alan";
+    group = "users";
+    systemService = true;
+    useInotify = true;
+    dataDir = "/home/alan/.config/syncthing";
+  };
+}
diff --git a/satoshipad.nix b/satoshipad.nix
index 9f1f6f05..687980f1 100644
--- a/satoshipad.nix
+++ b/satoshipad.nix
@@ -8,6 +8,7 @@
     ./modules/thinkpad.nix
     ./modules/audio.nix
     ./modules/adb.nix
+    ./modules/syncthing.nix
   ];
 
   networking.hostName = "satoshipad";