cozy: patch via sane.programs, not overlay

This commit is contained in:
Colin 2024-03-04 08:59:36 +00:00
parent 5f3ef37050
commit c86afca795
3 changed files with 12 additions and 14 deletions

View File

@ -1,7 +1,18 @@
{ ... }:
{ pkgs, ... }:
{
sane.programs.cozy = {
packageUnwrapped = pkgs.cozy.overrideAttrs (upstream: {
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-fail 'self._settings.get_int("report-level")' '0'
'';
});
sandbox.method = "bwrap"; # landlock gives: _multiprocessing.SemLock: Permission Denied
sandbox.whitelistAudio = true;
sandbox.whitelistDbus = [ "user" ]; # mpris

View File

@ -111,8 +111,6 @@ let
browserpass = callPackage ./patched/browserpass { inherit (unpatched) browserpass; };
cozy = callPackage ./patched/cozy { inherit (unpatched) cozy; };
engrampa = callPackage ./patched/engrampa { inherit (unpatched) mate; };
# mozilla keeps nerfing itself and removing configuration options

View File

@ -1,11 +0,0 @@
{ cozy, fetchpatch }: cozy.overrideAttrs (upstream: {
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-fail 'self._settings.get_int("report-level")' '0'
'';
passthru = (upstream.passthru or {}) // { upstream.cozy = cozy; };
})