Calibre: Difference between revisions
Appearance
copy from old wiki |
m Fix formatting a bit |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[https://calibre-ebook.com/ Calibre] is program to view, edit, convert and print ebooks. | |||
This page is intended to explain how to run <code>calibre</code> in nixos. | This page is intended to explain how to run <code>calibre</code> in nixos. | ||
== Connecting USB devices == | |||
To connect devices via USB, you might have to add the following to your <code>configuration.nix</code> file: | |||
<syntaxHighlight lang=nix> | |||
services.udisks2.enable = true; | |||
</syntaxHighlight> | |||
== .cbr and .cbz files == | == .cbr and .cbz files == | ||
Line 9: | Line 19: | ||
unrarSupport = true; | unrarSupport = true; | ||
}) | }) | ||
] | ]; | ||
</nowiki>}} | </nowiki>}} | ||
Line 22: | Line 32: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
}} | }} | ||
[[Category: Applications]] |
Latest revision as of 14:03, 2 September 2025
Calibre is program to view, edit, convert and print ebooks.
This page is intended to explain how to run calibre
in nixos.
Connecting USB devices
To connect devices via USB, you might have to add the following to your configuration.nix
file:
services.udisks2.enable = true;
.cbr and .cbz files
If you want to open .cbr and .cbz files, you need to add the following lines to your configuration.nix
file:
❄︎ /etc/nixos/configuration.nix
environment.systemPackages = with pkgs; [
(calibre.override {
unrarSupport = true;
})
];
Note:
calibre
requires several unfree packages to open .cbr and .cbz files. If you are using allowUnfreePredicate
you will need to ensure that your configurations permit all of them.
{
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"calibre"
"unrar"
];
}