nixfiles/modules/server/nayru/default.nix
2025-10-22 02:21:09 +02:00

27 lines
544 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 null;
};
age.secrets = {
nayru-conf = {
file = ../../../secrets/zora/services/nayru-conf.age;
path = "${config.services.komga.stateDir}/application.yml";
owner = "komga";
group = "komga";
};
};
}