summaryrefslogtreecommitdiffstats
path: root/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-09-17 01:10:36 +0200
committermakefu <github@syntax-fehler.de>2018-09-17 01:10:36 +0200
commitcceb82a76ae1d91e679bb5a8d145656d6ecaa17c (patch)
treee56c0b306059aa039f7083598d2a05defd16e27d /2configs
parentabf51d8def1b817712aa3ceea69f3f21636de507 (diff)
ma syncthing: track syncthing state
Diffstat (limited to '2configs')
-rw-r--r--2configs/syncthing.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/2configs/syncthing.nix b/2configs/syncthing.nix
index 6b758ea2d..bc7413a0a 100644
--- a/2configs/syncthing.nix
+++ b/2configs/syncthing.nix
@@ -1,11 +1,17 @@
-{...}:
+{ config, ... }:
with import <stockholm/lib>; {
services.syncthing = {
enable = true;
openDefaultPorts = true;
- useInotify = true;
group = "download";
};
users.extraGroups.download.gid = genid "download";
+ state = map (x: config.services.syncthing.dataDir + "/" + x) [
+ "key.pem"
+ "cert.pem"
+ "config.xml"
+ "https-cert.pem"
+ "https-key.pem"
+ ];
}
[cgit] Unable to lock slot /tmp/cgit/b2300000.lock: No such file or directory (2)