nixos-config/hosts/challenger/services/komga.nix

20 lines
385 B
Nix

{ config, lib, pkgs, ... }:
let
domain = "komga.home.feal.no";
cfg = config.services.komga;
in {
services.komga = {
enable = true;
stateDir = "/tank/media/komga";
port = 5001;
};
services.nginx.virtualHosts.${domain} = {
locations."/".proxyPass = "http://127.0.0.1:${toString cfg.port}";
extraConfig = ''
client_max_body_size 512M;
'';
};
}