2023-11-03 09:07:31 -07:00
|
|
|
{
|
2024-10-20 13:33:39 -07:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.rose-pine) sources;
|
|
|
|
|
|
|
|
cfg = config.programs.zathura.rose-pine;
|
|
|
|
enable = cfg.enable && config.programs.zathura.enable;
|
|
|
|
|
|
|
|
themeName =
|
|
|
|
if (cfg.flavor == "main")
|
|
|
|
then "rose-pine"
|
|
|
|
else "rose-pine-${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
|
|
|
}
|