aboutsummaryrefslogtreecommitdiffstats
path: root/modules/programs/zathura/default.nix
blob: 167b04f000416b080a4ae924d7171c96677d935b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  config,
  lib,
  pkgs,
  ...
}:

# Zathura - Minimalistic document viewer (PDF, DJVU, etc.)
{
  config = lib.mkIf config.programs.zathura.enable {
    programs.zathura = {
      package = pkgs.zathura;
    };

    xdg.mimeApps.defaultApplications = {
      "application/pdf" = "zathura.desktop";
      "application/x-pdf" = "zathura.desktop";
      "image/vnd.djvu" = "zathura.desktop";
      "application/epub+zip" = "zathura.desktop";
      "application/postscript" = "zathura.desktop";
      "application/vnd.comicbook+zip" = "zathura.desktop";
      "application/vnd.comicbook-rar" = "zathura.desktop";
    };
  };
}