calibre-web: fix ebook conversion missing config_binariesdir setting (#366642)
This commit is contained in:
@@ -4,7 +4,7 @@ let
|
||||
cfg = config.services.calibre-web;
|
||||
dataDir = if lib.hasPrefix "/" cfg.dataDir then cfg.dataDir else "/var/lib/${cfg.dataDir}";
|
||||
|
||||
inherit (lib) concatStringsSep mkEnableOption mkIf mkOption optional optionalString types;
|
||||
inherit (lib) concatStringsSep mkEnableOption mkIf mkOption optional optionals optionalString types;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
@@ -129,7 +129,10 @@ in
|
||||
"config_reverse_proxy_login_header_name = '${cfg.options.reverseProxyAuth.header}'"
|
||||
]
|
||||
++ optional (cfg.options.calibreLibrary != null) "config_calibre_dir = '${cfg.options.calibreLibrary}'"
|
||||
++ optional cfg.options.enableBookConversion "config_converterpath = '${pkgs.calibre}/bin/ebook-convert'"
|
||||
++ optionals cfg.options.enableBookConversion [
|
||||
"config_converterpath = '${pkgs.calibre}/bin/ebook-convert'"
|
||||
"config_binariesdir = '${pkgs.calibre}/bin/'"
|
||||
]
|
||||
++ optional cfg.options.enableKepubify "config_kepubifypath = '${pkgs.kepubify}/bin/kepubify'"
|
||||
);
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user