nixos/services/tt-rss.nix

22 lines
413 B
Nix
Raw Permalink Normal View History

2024-11-21 13:05:30 +01:00
{
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";
};
};
})