nixfiles/modules/server/nayru/default.nix
2026-01-06 23:54:07 +01:00

29 lines
593 B
Nix

{ config, lib, ... }:
{
services.komga = {
enable = true;
settings = {
server = {
# Not actually set here, but in the secret.
port = 44302;
};
};
};
systemd.tmpfiles.settings."10-komga" = {
"${config.services.komga.stateDir}/application.yml" = lib.mkForce {};
};
age.secrets = {
nayru-conf = {
file = ../../../secrets/zora/services/nayru-conf.age;
path = "${config.services.komga.stateDir}/application.yml";
owner = "komga";
group = "komga";
};
};
networking.firewall.allowedUDPPorts = [ 7359 ];
}