Convert Zathura configuration to module

This commit is contained in:
Yorick Barbanneau 2023-12-30 13:45:59 +01:00
parent 5eb724a0c4
commit 98be8e8da4
5 changed files with 27 additions and 14 deletions

View file

@ -0,0 +1,23 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.application.zathura;
in
{
options.modules.application.zathura = {
enable = mkEnableOption "enable Zathura PDF viewer";
};
config = mkIf cfg.enable {
programs.zathura = {
enable = true;
options = {
selection-clipboard = "clipboard";
font = "Fira Sans 12";
recolor = true;
};
};
xdg.mimeApps.defaultApplications = {
"application/pdf" = "org.pwmt.zathura.desktop";
};
};
}

View file

@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./application/zathura
./cli/neovim
./cli/vifm
./cli/zsh