helm/modules/desktop/media/documents.nix

25 lines
513 B
Nix
Raw Normal View History

# modules/desktop/media/docs.nix
{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.media.documents;
in {
options.modules.desktop.media.documents = {
enable = mkBoolOpt false;
pdf.enable = mkBoolOpt false;
ebook.enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
(mkIf cfg.ebook.enable calibre)
(mkIf cfg.pdf.enable evince)
# zathura
];
# TODO calibre/evince/zathura dotfiles
};
}