Calibre: Difference between revisions
m Fix formatting a bit |
Improve formatting, add top level usage heading, remove generic page description |
||
| Line 1: | Line 1: | ||
[https://calibre-ebook.com/ Calibre] is program to view, edit, convert and print ebooks. | [https://calibre-ebook.com/ Calibre] is program to view, edit, convert and print ebooks. | ||
== Usage == | |||
=== Connecting USB devices === | |||
To connect devices via USB, you might have to add the following to your NixOS configuration: | |||
<syntaxhighlight lang="nix"> | |||
services.udisks2.enable = true; | |||
</syntaxhighlight> | |||
< | === <code>.cbr</code> files === | ||
</ | |||
If you want to open <code>.cbr</code> files, you need to add the following lines to your NixOS configuration: | |||
<syntaxhighlight lang="nix"> | |||
environment.systemPackages = with pkgs; [ | environment.systemPackages = with pkgs; [ | ||
(calibre.override { | (calibre.override { | ||
| Line 20: | Line 20: | ||
}) | }) | ||
]; | ]; | ||
</ | </syntaxhighlight> | ||
{{note|<code>calibre</code> requires several unfree packages to open .cbr files. If you are using <code>allowUnfreePredicate</code> you will need to ensure that your configurations permit all of them. | |||
<syntaxhighlight lang="nix"> | |||
{ | { | ||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | ||
| Line 30: | Line 31: | ||
]; | ]; | ||
} | } | ||
</ | </syntaxhighlight> | ||
}} | }} | ||
[[Category: Applications]] | [[Category: Applications]] | ||