Convert Zathura configuration to module
This commit is contained in:
parent
5eb724a0c4
commit
98be8e8da4
5 changed files with 27 additions and 14 deletions
23
modules/home-manager/application/zathura/default.nix
Normal file
23
modules/home-manager/application/zathura/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./application/zathura
|
||||
./cli/neovim
|
||||
./cli/vifm
|
||||
./cli/zsh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue