niksos/modules/gui/zathura.nix

31 lines
857 B
Nix
Raw Normal View History

2023-09-08 16:10:15 +02:00
{
2023-10-13 21:04:24 +02:00
config,
config',
lib,
2023-09-08 16:10:15 +02:00
pkgs,
...
2023-10-13 21:04:24 +02:00
}: 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=";
};
2023-09-08 16:10:15 +02:00
2023-10-13 21:04:24 +02:00
programs.zathura = {
enable = true;
extraConfig = ''
include catppuccin-mocha
'';
options = {
selection-clipboard = "clipboard";
};
};
2023-09-08 16:10:15 +02:00
};
};
}