mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
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:
parent
9af174aab8
commit
eb8b519394
5 changed files with 93 additions and 3 deletions
16
modules/system/exports/nfandroidtv.nix
Normal file
16
modules/system/exports/nfandroidtv.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue