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

with pkgs.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"
  ];
}