32 lines
913 B
Nix
32 lines
913 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.myOptions.programs.zathura;
|
|
inherit (config.myOptions.other.system) username;
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
in {
|
|
options.myOptions.programs.zathura.enable = mkEnableOption "zathura";
|
|
|
|
config = mkIf cfg.enable {
|
|
home-manager.users.${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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|