diff --git a/home.nix b/home.nix index 43a4b5f..5a9bc08 100644 --- a/home.nix +++ b/home.nix @@ -37,6 +37,8 @@ in { ouch inetutils fd + # used for yazi epub previews + epub-thumbnailer # remote working remmina # communication @@ -323,6 +325,25 @@ in { programs.yazi = { enable = true; + enableFishIntegration = true; + plugins = { + epub-preview = + pkgs.fetchFromGitHub + { + owner = "kirasok"; + repo = "epub-preview.yazi"; + rev = "2e8079e4a7f6315de99a5b968ed5fda479f1f39c"; + hash = "sha256-wHTR8frrFL3cUD8fvSTO+m/77wQ7auVjTZ1uCTB/UzU="; + }; + }; + settings = { + plugin.prepend_previewers = [ + { + mime = "application/epub+zip"; + run = "epub-preview"; + } + ]; + }; }; xsession.windowManager.xmonad = {