{ 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; }; }; }; }; }