From b87ced9a95fd0de4e3631e67cc5a7a929adee464 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Wed, 28 Oct 2026 11:49:51 -0400 Subject: Working concept with an instance for my pocketbook --- instances/pocketbook.nix | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'instances') diff --git a/instances/pocketbook.nix b/instances/pocketbook.nix index 905cf79..9d4af86 100644 --- a/instances/pocketbook.nix +++ b/instances/pocketbook.nix @@ -5,10 +5,46 @@ ... }: with builtins // lib; +let + pocketbooksync = pkgs.fetchzip { + url = "https://github.com/ckilb/pocketbooksync.koplugin/releases/download/v1.0.2/pocketbooksync.koplugin-v1.0.2.zip"; + }; + wifi = pkgs.fetchFromGitHub { + owner = "Lomig"; + repo = "koreader-pocketbook-wifi"; + rev = "1278fe9"; + }; + +in { koreader.flavor = "pocketbook"; plugins = { - pocketbooksync = "${pkgs.koreader-plugins.pocketbooksync}/pocketbooksync.koplugin"; + pocketbooksync = "${pocketbooksync}/pocketbooksync.koplugin"; + }; + + # patches = { + # "2-bookorbit-wifi-cycle.lua" = "${wifi}/patches/2-bookorbit-wifi-cycle.lua"; + # "2-menu-footer-wifi-icon.lua" = "${wifi}/patches/2-menu-footer-wifi-icon.lua"; + # "2-pocketbook-net-diag.lua" = "${wifi}/patches/2-pocketbook-net-diag.lua"; + # "2-pocketbook-wifi-off.lua" = "${wifi}/pathces/2-pocketbook-wifi-off.lua"; + # "2-pocketbook-wifi-silent-connect.lua" = "${wifi}/patches/2-pocketbook-wifi-silent-connect.lua"; + # }; + patchDirectories = [ + "${wifi}/patches" + ]; + + dictionaries = { + Wiktionary = pkgs.fetchtar { + url = "https://github.com/xxyzz/wiktionary_stardict/releases/download/20261020/en-en.tar.zst"; + }; + GNU = pkgs.fetchzip { + url = "http://tovotu.de/data/stardict/gcide.zip"; + }; + }; + + fonts = { + Alegreya = "${pkgs.alegreya}/share/fonts/truetype"; + ComputerModern = "${pkgs.cm_unicode}/share/fonts/opentype"; }; } -- cgit v1.3.1