mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-23 22:41:31 -04:00
30 lines
621 B
Nix
30 lines
621 B
Nix
{ lib, ... }:
|
|
let
|
|
port = lib.custom.autoport "komga";
|
|
in
|
|
{
|
|
systemd.tmpfiles.rules = [
|
|
"d /var/lib/komga"
|
|
"d /var/lib/komga/config"
|
|
"d /var/lib/komga/data"
|
|
];
|
|
|
|
services.caddy.virtualHosts."library.wanderingcrow.net".extraConfig = ''
|
|
reverse_proxy http://localhost:25600
|
|
'';
|
|
|
|
virtualisation.quadlet = {
|
|
containers = {
|
|
komga.containerConfig = {
|
|
image = "ghcr.io/gotson/komga:latest";
|
|
publishPorts = [
|
|
"25600:25600"
|
|
];
|
|
volumes = [
|
|
"/var/lib/komga/config:/config"
|
|
"/var/lib/komga/data:/data"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|