21 lines
408 B
Nix
21 lines
408 B
Nix
{ config, lib, pkgs, ... } :
|
|
with lib;
|
|
let
|
|
cfg = config.local.apps.docs;
|
|
in
|
|
{
|
|
options.local.apps.docs.enable = mkEnableOption "Doc management tools";
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
libreoffice-fresh
|
|
okular
|
|
pdfarranger
|
|
xournal
|
|
];
|
|
|
|
xdg.mimeApps.defaultApplications = {
|
|
"application/pdf" = [ "org.kde.okular.desktop" ];
|
|
};
|
|
};
|
|
}
|