blob: c351e6cf5648c94c85110e23263809a92df55fc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ config, lib, ... }:
with lib; let
cfg = config.local.syncthing;
in
{
options.local.syncthing = {
enable = mkEnableOption "syncthing server";
};
config = mkIf cfg.enable {
services.syncthing = {
enable = true;
systemService = true;
overrideFolders = false;
overrideDevices = false;
openDefaultPorts = true;
guiAddress = "127.0.0.1:8384";
settings.options.urAccepted = -1;
relay = {
enable = true;
pools = [ ];
providedBy = "${config.networking.hostName}.${config.networking.domain}";
};
};
};
}
|