about summary refs log tree commit diff
path: root/modules/nixos/zathura.nix
blob: e7d141525567d1d893081f813144be8132a215fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.zathura;
in {
  config = mkIf cfg.enable {
    nixfiles.modules.common.xdg.defaultApplications."org.pwmt.zathura" = [
      "application/pdf"
      "application/epub+zip"
    ];
  };
}

Consider giving Nix/NixOS a try! <3