2023-01-10 16:05:48 +01:00
|
|
|
{ config, pkgs, ... }:
|
2023-03-12 05:24:25 +01:00
|
|
|
let base16-zathura = config.lib.stylix.colors {
|
|
|
|
templateRepo = pkgs.fetchFromGitHub {
|
|
|
|
owner = "doenerkebap";
|
|
|
|
repo = "base16-zathura";
|
|
|
|
sha256 = "1zcrzll13d4lmyzibwdqkkdssyhr3c9s4yxhqigg3azsizk8adb4";
|
|
|
|
rev = "2caef8fff6a5412e05950c6105c5020a6f16ead2";
|
|
|
|
};
|
2023-01-10 16:05:48 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.zathura = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
# Generated theme
|
2023-04-01 21:29:47 +02:00
|
|
|
include ${base16-zathura}
|
2023-01-10 16:05:48 +01:00
|
|
|
|
|
|
|
# Open document in fit-width mode by default
|
|
|
|
set adjust-open "best-fit"
|
|
|
|
|
|
|
|
# Inject font
|
2023-03-12 05:24:25 +01:00
|
|
|
set font "${config.stylix.fonts.sansSerif.name}"
|
2023-01-10 16:05:48 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|