services: calibre-web: use upstream service
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Bruno BELANYI 2021-04-01 19:22:55 +00:00
parent 0d31aebb87
commit ee1b31954a

View file

@ -23,22 +23,19 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
virtualisation.oci-containers.containers = { services.calibre-web = {
calibre-web = { enable = true;
image = "technosoft2000/calibre-web";
volumes = [ listen = {
"${cfg.libraryPath}:/books" ip = "127.0.0.1";
]; port = cfg.port;
ports = [
"127.0.0.1:${toString cfg.port}:8083"
];
environment = {
# NOTE: should be configurable
SET_CONTAINER_TIMEZONE = "true";
CONTAINER_TIMEZONE = "Europe/Paris";
# Use 'media' group id
PDGID = toString config.users.groups.media.gid;
}; };
group = "media";
options = {
calibreLibrary = cfg.libraryPath;
enableBookConversion = true;
}; };
}; };
@ -51,6 +48,7 @@ in
my.services.backup = { my.services.backup = {
paths = [ paths = [
"/var/lib/calibre-web" # For `app.db` and `gdrive.db`
cfg.libraryPath cfg.libraryPath
]; ];
}; };