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

This commit is contained in:
Yifei Sun
2025-08-12 15:37:08 +02:00
parent 86c5b05ce4
commit 645af1a698
@@ -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;