Skyler Grey | 58fbb97 | 2023-12-23 02:39:35 +0000 | [diff] [blame^] | 1 | {config, ...}: { |
| 2 | |
| 3 | users.users.calibre-server.extraGroups = [ "nextcloud" ]; |
| 4 | users.users.calibre-web.extraGroups = [ "nextcloud" ]; |
| 5 | |
| 6 | services.calibre-server = { |
| 7 | enable = true; |
| 8 | |
| 9 | host = "127.0.0.255"; |
| 10 | port = 1033; |
| 11 | |
| 12 | libraries = [ |
| 13 | "${config.services.nextcloud.datadir}/data/clicks-services/files/calibre" |
| 14 | ]; |
| 15 | |
| 16 | }; |
| 17 | |
| 18 | services.calibre-web = { |
| 19 | enable = true; |
| 20 | listen = { |
| 21 | ip = "127.0.0.255"; |
| 22 | port = 1032; |
| 23 | }; |
| 24 | |
| 25 | options = { |
| 26 | enableBookUploading = true; |
| 27 | enableBookConversion = true; |
| 28 | |
| 29 | calibreLibrary = "${config.services.nextcloud.datadir}/data/clicks-services/files/calibre"; |
| 30 | |
| 31 | reverseProxyAuth = { |
| 32 | enable = false; |
| 33 | header = "keycloak_oidc"; |
| 34 | }; # TODO: setup keycloak auth with oauth2_proxy |
| 35 | }; |
| 36 | }; |
| 37 | } |