fa6cf71043
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/e891b060e7d11bb8f7dedb86a41d804891a6f5a9' (2022-11-29) → 'github:nix-community/home-manager/65c47ced082e3353113614f77b1bc18822dc731f' (2023-01-23) • Updated input 'nixGL': 'github:guibou/nixGL/7165ffbccbd2cf4379b6cd6d2edd1620a427e5ae' (2022-08-24) → 'github:guibou/nixGL/643e730efb981ffaf8478f441ec9b9aeea1c89f5' (2023-01-06) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/ce5fe99df1f15a09a91a86be9738d68fadfbad82' (2022-11-27) → 'github:nixos/nixpkgs/1b82144edfcd0c86486d2e07c7298f85510e7fb8' (2023-02-12) • Updated input 'nur': 'github:nix-community/NUR/fc128f900b45a334c0cad397b955316fcaaad495' (2022-11-29) → 'github:nix-community/NUR/9e53590ae92ae7b39ca989f37950903395997490' (2023-02-13) • Updated input 'unstable': 'github:nixos/nixpkgs/cfa3ddd75330a31bc25bc4d3f8c1ef387ec408bf' (2022-11-29) → 'github:nixos/nixpkgs/14cb2130bb78b96853e576d21ea823b1b19f39de' (2023-02-13)
21 lines
410 B
Nix
21 lines
410 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
|
|
xournalpp
|
|
];
|
|
|
|
xdg.mimeApps.defaultApplications = {
|
|
"application/pdf" = [ "org.kde.okular.desktop" ];
|
|
};
|
|
};
|
|
}
|