about summary refs log tree commit diff stats
path: root/modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix')
-rw-r--r--modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix b/modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix
new file mode 100644
index 00000000..b27e3ef9
--- /dev/null
+++ b/modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix
@@ -0,0 +1,12 @@
+{pkgs, ...}: {
+  soispha.programs.lf.ctpv.previewers = {
+    pdf = {
+      previewer = ./pdf.sh;
+      matches.mime = ["application/pdf"];
+      priority = 1;
+      dependencies = [
+        pkgs.poppler_utils # for `pdftoppm`
+      ];
+    };
+  };
+}