nixos/calibre-web: fix book cover not showing up due to cache directory defaults to cps path under /nix/store/ (#432604)

This commit is contained in:
StepBroBD
2025-09-06 21:11:01 +02:00
committed by GitHub
@@ -178,6 +178,10 @@ in
ExecStart = "${calibreWebCmd} -i ${cfg.listen.ip}";
Restart = "on-failure";
CacheDirectory = "calibre-web";
CacheDirectoryMode = "0750";
environment.CACHE_DIR = "/var/cache/calibre-web";
}
// lib.optionalAttrs (!(lib.hasPrefix "/" cfg.dataDir)) {
StateDirectory = cfg.dataDir;