cozy: patch via sane.programs, not overlay
This commit is contained in:
parent
5f3ef37050
commit
c86afca795
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; };
|
||||
})
|
Loading…
Reference in New Issue
Block a user