aboutsummaryrefslogtreecommitdiff
path: root/modules/server/calibre/default.nix
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-11-30 21:59:43 +0000
committeraethrvmn <me@aethrvmn.gr>2025-11-30 21:59:43 +0000
commit893ea11e1dc05fe1a2a34e66d4ebcfdffda34720 (patch)
treeef454e299f49cbb58e1b9fbafd0b759b4379ac2a /modules/server/calibre/default.nix
parentadded .lock to ignorelist (diff)
huge restructure of modules
Diffstat (limited to 'modules/server/calibre/default.nix')
-rw-r--r--modules/server/calibre/default.nix39
1 files changed, 0 insertions, 39 deletions
diff --git a/modules/server/calibre/default.nix b/modules/server/calibre/default.nix
deleted file mode 100644
index d177ac1..0000000
--- a/modules/server/calibre/default.nix
+++ /dev/null
@@ -1,39 +0,0 @@
-{ config, pkgs, ... }:
-let
- libDir = "/var/lib/calibre-web/library";
-in {
- services = {
- calibre-web = {
- enable = true;
-
- listen = {
- ip = "127.0.0.1";
- port = 3020;
- };
-
- options = {
- calibreLibrary = libDir;
- enableBookUploading = true;
- };
- };
-
- nginx = {
- virtualHosts."library.internal" = {
- locations."/" = {
- proxyPass = "http://127.0.0.1:3020";
- proxyWebsockets = true;
- };
- };
- };
- };
-
- systemd.services.calibre-web = {
- preStart = ''
- if [ ! -f "${libDir}/metadata.db" ]; then
- mkdir -p "${libDir}"
- ${pkgs.calibre}/bin/calibredb add --empty \
- --with-library "${libDir}"
- fi
- '';
- };
-}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.