rose-pine-nix/modules/home-manager/zathura.nix

21 lines
424 B
Nix
Raw Normal View History

{
2024-10-20 13:33:39 -07:00
config,
lib,
...
}:
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;
themeName = lib.rp.getKebabTheme cfg.flavor;
in
{
options.programs.zathura.rose-pine = lib.rp.mkRosePineOpt { name = "zathura"; };
config.programs.zathura.extraConfig = lib.mkIf enable ''
2024-10-20 13:33:39 -07:00
include ${sources.zathura + "/${themeName}"}
'';
}