dotfiles/user-modules/zathura/default.nix

37 lines
633 B
Nix
Raw Permalink Normal View History

2024-07-19 12:00:55 +00:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.zathura;
2024-12-01 23:56:31 +00:00
colors = config.theming.colors;
2024-07-19 12:00:55 +00:00
in
{
options.modules.zathura.enable = lib.mkEnableOption "zathura";
config = lib.mkIf cfg.enable {
programs.zathura = {
enable = true;
options = {
guioptions = "none";
2024-12-01 23:56:31 +00:00
recolor = true;
recolor-keephue = false;
recolor-darkcolor = lib.mkForce "#${colors.accent}";
recolor-lightcolor = lib.mkForce "#${colors.bg}";
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"application/pdf" = "zathura";
};
};
};
2024-07-19 12:00:55 +00:00
}