File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
nixos/modules/services/web-apps Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 44 cfg = config . services . calibre-web ;
55 dataDir = if lib . hasPrefix "/" cfg . dataDir then cfg . dataDir else "/var/lib/${ cfg . dataDir } " ;
66
7- inherit ( lib ) concatStringsSep mkEnableOption mkIf mkOption optional optionalString types ;
7+ inherit ( lib ) concatStringsSep mkEnableOption mkIf mkOption optional optionals optionalString types ;
88in
99{
1010 options = {
129129 "config_reverse_proxy_login_header_name = '${ cfg . options . reverseProxyAuth . header } '"
130130 ]
131131 ++ optional ( cfg . options . calibreLibrary != null ) "config_calibre_dir = '${ cfg . options . calibreLibrary } '"
132- ++ optional cfg . options . enableBookConversion "config_converterpath = '${ pkgs . calibre } /bin/ebook-convert'"
132+ ++ optionals cfg . options . enableBookConversion [
133+ "config_converterpath = '${ pkgs . calibre } /bin/ebook-convert'"
134+ "config_binariesdir = '${ pkgs . calibre } /bin/'"
135+ ]
133136 ++ optional cfg . options . enableKepubify "config_kepubifypath = '${ pkgs . kepubify } /bin/kepubify'"
134137 ) ;
135138 in
You can’t perform that action at this time.
0 commit comments