diff options
Diffstat (limited to '2configs/syncthing.nix')
-rw-r--r-- | 2configs/syncthing.nix | 10 |
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" + ]; } |