cozy: disable reporting/telemetry

This commit is contained in:
Colin 2023-09-22 20:37:09 +00:00
parent 2f12fd8ae7
commit 57c3abf2e1

View File

@ -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; };
})