nix-config/containers/kavita/default.nix

29 lines
600 B
Nix
Raw Normal View History

2024-11-10 17:54:08 -05:00
{ ... }:
let
directories = [
"/opt/kavita"
];
in
{
systemd.tmpfiles.rules = map (x: "d ${x} 0755 share share - -") directories;
virtualisation.oci-containers.containers.kavita = {
image = "jvmilazz0/kavita:latest";
autoStart = true;
ports = [
"5000:5000"
];
volumes = [
"/opt/kavita/config:/kavita/config"
"/lagoon/media/library/Books:/books"
];
environment = {
TZ = "America/Detroit";
};
};
services.caddy.virtualHosts."library.tdback.net".extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:5000
'';
}