Add modules/server/containers/apps/calibre.nix

This commit is contained in:
2026-06-01 17:16:29 +02:00
parent 3f67ae6bba
commit 036cd1a5de

View File

@@ -0,0 +1,39 @@
{ config, containerCfg, pkgs, lib, builder, name,... }:
let
version = "latest";
serverCfg = config.syscfg.server;
in {
sops = false;
db = false;
paths = [
{
path = "${serverCfg.configPath}/calibre-web/";
mode = "0755";
dirs = ["library" "ingest"];
}
];
containers = {
server = builder.mkContainer {
subdomain = containerCfg.subdomain;
image = "crocodilestick/calibre-web-automated:${version}";
port = 8083;
# secret = name;
extraEnv = {
CWA_PORT_OVERRIDE = "8083";
PUID = "1000";
PGID = "1000";
#HARDCOVER_TOKEN= ....
TRUSTED_PROXY_COUNT= "1";
};
overrides = {
cmd = [ ];
volumes = [
"${serverCfg.configPath}/calibre-web/library/:/calibre-library"
"${serverCfg.configPath}/calibre-web/ingest/:/cwa-book-ingest"
];
};
};
};
}