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

14 lines
391 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.zathura.catppuccin;
enable = cfg.enable && config.programs.zathura.enable;
in
{
options.programs.zathura.catppuccin = lib.ctp.mkCatppuccinOpt { name = "zathura"; };
config.programs.zathura.extraConfig = lib.mkIf enable ''
include ${sources.zathura + "/src/catppuccin-${cfg.flavor}"}
'';
}