nichts/modules/gui/zathura.nix

34 lines
930 B
Nix
Raw Normal View History

2024-04-10 19:21:46 +02:00
{
config,
lib,
pkgs,
...
}: with lib; let
2024-04-12 22:03:29 +02:00
cfg = config.modules.programs.zathura;
username = config.modules.other.system.username;
2024-04-19 21:03:12 +02:00
catppuccin = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "zathura";
rev = "4eb02fd206de63b2423f6deb58242d352545b52f";
hash = "sha256-/vD/hOi6KcaGyAp6Az7jL5/tQSGRzIrf0oHjAJf4QbI=";
};
2024-04-10 19:21:46 +02:00
in {
2024-04-12 22:03:29 +02:00
options.modules.programs.zathura.enable = mkEnableOption "zathura";
2024-04-10 19:21:46 +02:00
config = mkIf cfg.enable {
home-manager.users.${username} = {
2024-04-19 21:03:12 +02:00
xdg.configFile."zathura/catppuccin-mocha".source = "${catppuccin}/src/catppuccin-mocha";
2024-04-10 19:21:46 +02:00
programs.zathura = {
enable = true;
extraConfig = ''
include catppuccin-mocha
'';
options = {
selection-clipboard = "clipboard";
};
};
};
};
}