diff --git a/apps/zathura/default.nix b/apps/zathura/default.nix index 99912f2..c46df28 100644 --- a/apps/zathura/default.nix +++ b/apps/zathura/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, lib, ... }: { programs.zathura = { enable = true; @@ -12,9 +12,15 @@ zoom-min = 10; recolor = true; }; - extraConfig = "include zathura-matugen"; + extraConfig = "include ${config.home.homeDirectory}/.config/zathura/zathura-matugen"; }; + home.activation.createZathuraMatugen = lib.hm.dag.entryAfter ["writeBoundary"] '' + if [ ! -f "${config.home.homeDirectory}/.config/zathura/zathura-matugen" ]; then + touch "${config.home.homeDirectory}/.config/zathura/zathura-matugen" + fi + ''; + xdg.mimeApps = { enable = true; defaultApplications = {