summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/syncthing.nix
blob: bc7413a0a0a9ff6877e77162dc5af5816d5cbe62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, ... }:

with import <stockholm/lib>; {
  services.syncthing = {
    enable = true;
    openDefaultPorts = 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"
  ];
}