niksos/modules/gui/zathura.nix
2023-10-13 21:04:24 +02:00

30 lines
857 B
Nix

{
config,
config',
lib,
pkgs,
...
}: with lib; let
cfg = config.myOptions.programs.zathura;
in {
options.myOptions.programs.zathura.enable = mkEnableOption "enable zathura";
config = mkIf cfg.enable {
home-manager.users.${config'.username} = {
xdg.configFile."zathura/catppuccin-mocha".source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-mocha";
hash = "sha256-/HXecio3My2eXTpY7JoYiN9mnXsps4PAThDPs4OCsAk=";
};
programs.zathura = {
enable = true;
extraConfig = ''
include catppuccin-mocha
'';
options = {
selection-clipboard = "clipboard";
};
};
};
};
}