2024-08-06 18:35:24 -07:00
|
|
|
{ config, lib, ... }:
|
2023-11-03 09:07:31 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2023-11-03 09:07:31 -07:00
|
|
|
cfg = config.programs.zathura.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.zathura.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-28 09:29:30 -07:00
|
|
|
options.programs.zathura.catppuccin = lib.ctp.mkCatppuccinOpt { name = "zathura"; };
|
2023-11-03 09:07:31 -07:00
|
|
|
|
2024-08-06 18:35:24 -07:00
|
|
|
config.programs.zathura.extraConfig = lib.mkIf enable ''
|
|
|
|
include ${sources.zathura + "/src/catppuccin-${cfg.flavor}"}
|
|
|
|
'';
|
2023-11-03 09:07:31 -07:00
|
|
|
}
|