2024-03-04 08:59:36 +00:00
|
|
|
{ pkgs, ... }:
|
2023-06-15 06:34:50 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
sane.programs.cozy = {
|
2024-03-04 08:59:36 +00:00
|
|
|
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'
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2024-05-13 19:59:03 +00:00
|
|
|
buildCost = 1;
|
|
|
|
|
2024-01-27 13:11:22 +00:00
|
|
|
sandbox.method = "bwrap"; # landlock gives: _multiprocessing.SemLock: Permission Denied
|
2024-02-13 11:14:38 +00:00
|
|
|
sandbox.whitelistAudio = true;
|
2024-02-13 11:58:12 +00:00
|
|
|
sandbox.whitelistDbus = [ "user" ]; # mpris
|
2024-02-14 01:49:49 +00:00
|
|
|
sandbox.whitelistWayland = true;
|
2024-01-27 13:11:22 +00:00
|
|
|
sandbox.extraHomePaths = [
|
2024-02-27 21:36:18 +00:00
|
|
|
"Books/local"
|
2024-02-12 12:54:16 +00:00
|
|
|
"Books/servo"
|
2024-01-27 13:11:22 +00:00
|
|
|
];
|
2024-02-12 12:54:16 +00:00
|
|
|
|
2023-06-15 06:34:50 +00:00
|
|
|
# cozy uses a sqlite db for its config and exposes no CLI options other than --help and --debug
|
2023-11-08 15:32:50 +00:00
|
|
|
persist.byStore.plaintext = [
|
2023-06-15 06:34:50 +00:00
|
|
|
".local/share/cozy" # sqlite db (config & index?)
|
|
|
|
".cache/cozy" # offline cache
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|