From 005ea6cc187cbb79a2eab51dd32dc84b16558638 Mon Sep 17 00:00:00 2001 From: Nicolas Berbiche Date: Fri, 4 Dec 2020 12:38:22 -0500 Subject: [PATCH] zathura: allow configuring the package used (#1636) Closes #1633 --- modules/programs/zathura.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/programs/zathura.nix b/modules/programs/zathura.nix index d9f3c1af1..64a77cb3b 100644 --- a/modules/programs/zathura.nix +++ b/modules/programs/zathura.nix @@ -20,6 +20,13 @@ in { Zathura, a highly customizable and functional document viewer focused on keyboard interaction''; + package = mkOption { + type = types.package; + default = pkgs.zathura; + defaultText = "pkgs.zathura"; + description = "The Zathura package to use"; + }; + options = mkOption { default = { }; type = with types; attrsOf (either str (either bool int)); @@ -49,7 +56,7 @@ in { }; config = mkIf cfg.enable { - home.packages = [ pkgs.zathura ]; + home.packages = [ cfg.package ]; xdg.configFile."zathura/zathurarc".text = concatStringsSep "\n" ([ ] ++ optional (cfg.extraConfig != "") cfg.extraConfig