summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2020-01-28 15:52:53 -0700
committerKenny Ballou <kballou@devnulllabs.io>2020-01-29 21:09:35 -0700
commit259a8ef47135f2a923c3fe8fb056cedc867b2d9c (patch)
tree550ae5330a227637187f7c15cefcb704818ce4c2 /services
parent50da2fb052fcdf89624b6faa51b4d20047d82317 (diff)
downloadcfg.nix-259a8ef47135f2a923c3fe8fb056cedc867b2d9c.tar.gz
cfg.nix-259a8ef47135f2a923c3fe8fb056cedc867b2d9c.tar.xz
services: syncthing: initial service configuration
Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Diffstat (limited to 'services')
-rw-r--r--services/syncthing.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/services/syncthing.nix b/services/syncthing.nix
new file mode 100644
index 0000000..6cd653a
--- /dev/null
+++ b/services/syncthing.nix
@@ -0,0 +1,21 @@
+{ config, ... }:
+{
+ services.syncthing = {
+ all_proxy = null;
+ enable = true;
+ dataDir = /home/kb;
+ configDir = /home/kb/.config/syncthing;
+ group = "users";
+ user = "kb";
+ systemService = true;
+ declarative.folders = {
+ "sync-root" = {
+ label = "sync";
+ id = "sync-root";
+ path = "/home/kb/sync";
+ ignorePerms = false;
+ devices = [ ];
+ };
+ };
+ };
+}