nixos/services/tt-rss.nix
2024-11-22 14:00:18 +01:00

21 lines
413 B
Nix

{
config,
lib,
...
}:
with lib;
mkIf (elem "tt-rss" config.machine.services) ({
services.tt-rss =
let
fqdn = ((findFirst (s: s.service == "tt-rss") { domain = null; } config.machine.vHosts)).domain;
in
{
enable = true;
registration.enable = false;
selfUrlPath = "https://${fqdn}";
virtualHost = fqdn;
database = {
type = "mysql";
};
};
})