aboutsummaryrefslogtreecommitdiff
path: root/modules/retired/kavita/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/retired/kavita/default.nix')
-rw-r--r--modules/retired/kavita/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/retired/kavita/default.nix b/modules/retired/kavita/default.nix
new file mode 100644
index 0000000..c72aca6
--- /dev/null
+++ b/modules/retired/kavita/default.nix
@@ -0,0 +1,28 @@
+{ ... }:
+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
+ '';
+}