about summary refs log tree commit diff stats
path: root/modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix')
-rw-r--r--modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix b/modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix
new file mode 100644
index 00000000..33c51352
--- /dev/null
+++ b/modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix
@@ -0,0 +1,14 @@
+{pkgs, ...}: {
+  soispha.programs.lf.ctpv.previewers = {
+    epub = {
+      previewer = ./epub.sh;
+      matches.mime = ["application/epub+zip"];
+      matches.extension = ["epub"];
+      priority = 1;
+      dependencies = with pkgs; [
+        bk
+        epub-thumbnailer
+      ];
+    };
+  };
+}