mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
the service on the TV is unreliable, so proxy it with a fake success response when offline to satisfy the home-assistant integration
16 lines
379 B
Nix
16 lines
379 B
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
}
|