20 lines
424 B
Nix
20 lines
424 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
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 ''
|
|
include ${sources.zathura + "/${themeName}"}
|
|
'';
|
|
}
|