From 57c3abf2e19559f250d9e6eef761e3e3ffb0890a Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 22 Sep 2023 20:37:09 +0000 Subject: [PATCH] cozy: disable reporting/telemetry --- pkgs/patched/cozy/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/patched/cozy/default.nix b/pkgs/patched/cozy/default.nix index 71a73631..cff7cae6 100644 --- a/pkgs/patched/cozy/default.nix +++ b/pkgs/patched/cozy/default.nix @@ -7,5 +7,13 @@ hash = "sha256-Wk03NGVU7OsQu3AGILtRsQX2r+wPOt5U85cOWu4q6Uo="; }) ]; + postPatch = (upstream.postPatch or "") + '' + # disable all reporting. + # this can be done via the settings, but that's troublesome and easy to forget. + # specifically, i don't want moby to be making these network requests several times per hour + # while it might be roaming or trying to put the RF to sleep. + substituteInPlace cozy/application_settings.py \ + --replace 'self._settings.get_int("report-level")' '0' + ''; passthru = (upstream.passthru or {}) // { upstream.cozy = cozy; }; })