nix-files/hosts/common/programs/komikku.nix

27 lines
1007 B
Nix
Raw Normal View History

{ pkgs, ... }:
2023-06-13 04:16:00 +00:00
{
2023-06-13 04:42:58 +00:00
sane.programs.komikku = {
packageUnwrapped = pkgs.komikku.overrideAttrs (upstream: {
preFixup = ''
# 2024/02/21: render bug which affects only moby:
# large images render blank in several gtk applications.
# may resolve itself as gtk or mesa are updated.
gappsWrapperArgs+=(--set GSK_RENDERER cairo)
'' + (upstream.preFixup or "");
});
2024-01-29 12:52:16 +00:00
sandbox.method = "bwrap"; # TODO:sandbox untested
sandbox.net = "clearnet";
sandbox.whitelistDbus = [ "user" ]; # needs to connect to dconf via dbus
2024-02-03 00:52:17 +00:00
sandbox.whitelistDri = true; #< required
sandbox.whitelistWayland = true;
2023-06-13 04:42:58 +00:00
secrets.".local/share/komikku/keyrings/plaintext.keyring" = ../../../secrets/common/komikku_accounts.json.bin;
# downloads end up here, and without the toplevel database komikku doesn't know they exist.
2024-02-03 00:52:17 +00:00
persist.byStore.plaintext = [
# also writes to ~/.cache/komikku
".local/share/komikku"
];
2023-06-13 04:42:58 +00:00
};
2023-06-13 04:16:00 +00:00
}