27 lines
447 B
Nix
27 lines
447 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.syncthing;
|
|
in {
|
|
options = {
|
|
syncthing.enable = mkEnableOption "enable syncthing";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
services.syncthing = {
|
|
enable = true;
|
|
overrideDevices = false;
|
|
overrideFolders = false;
|
|
tray.enable = true;
|
|
settings = {
|
|
options = {
|
|
urAccepted = -1;
|
|
relaysEnabled = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|