fix(hass): nfandroidtv proxy

the service on the TV is unreliable, so proxy it with a fake success
response when offline to satisfy the home-assistant integration
This commit is contained in:
arcnmx 2024-06-18 16:52:49 -07:00
parent 9af174aab8
commit eb8b519394
5 changed files with 93 additions and 3 deletions

View file

@ -0,0 +1,16 @@
{
lib,
gensokyo-zone,
...
}: let
inherit (gensokyo-zone.lib) mkAlmostOptionDefault;
in {
config.exports.services.nfandroidtv = {config, ...}: {
displayName = mkAlmostOptionDefault "Notifications for Android TV";
ports.default = {
port = mkAlmostOptionDefault 7676;
protocol = "http";
#status.enable = mkAlmostOptionDefault true;
};
};
}