2023-11-03 09:07:31 -07:00
|
|
|
{
|
2024-10-20 13:33:39 -07:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-04 20:55:40 -08:00
|
|
|
}:
|
|
|
|
let
|
2024-10-20 13:33:39 -07:00
|
|
|
inherit (config.rose-pine) sources;
|
|
|
|
|
|
|
|
cfg = config.programs.zathura.rose-pine;
|
|
|
|
enable = cfg.enable && config.programs.zathura.enable;
|
|
|
|
|
2024-11-04 20:55:40 -08:00
|
|
|
themeName = lib.rp.getKebabTheme cfg.flavor;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.zathura.rose-pine = lib.rp.mkRosePineOpt { 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 ''
|
2024-10-20 13:33:39 -07:00
|
|
|
include ${sources.zathura + "/${themeName}"}
|
2024-08-06 18:35:24 -07:00
|
|
|
'';
|
2023-11-03 09:07:31 -07:00
|
|
|
}
|