From f55410f566369f83f6a1c7fd4c03f435d893eca7 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Mon, 29 Jun 2020 19:57:30 +0100 Subject: tweak catbus-lgtv and catbus-wakeonlan --- nixos/modules/services/catbus-observer-lgtv.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'nixos/modules/services/catbus-observer-lgtv.nix') diff --git a/nixos/modules/services/catbus-observer-lgtv.nix b/nixos/modules/services/catbus-observer-lgtv.nix index e1a293c..9e727f3 100644 --- a/nixos/modules/services/catbus-observer-lgtv.nix +++ b/nixos/modules/services/catbus-observer-lgtv.nix @@ -8,7 +8,12 @@ let configJSON = pkgs.writeText "config.json" (builtins.toJSON { mqttBroker = "tcp://${cfg.mqttBroker.host}:${toString cfg.mqttBroker.port}"; apps = cfg.apps; - topics = cfg.topics; + topics = { + app = cfg.topics.input; + appValues = cfg.topics.inputValues; + power = cfg.topics.power; + volume = cfg.topics.volume; + }; tv = cfg.tv; }); @@ -47,12 +52,12 @@ in { }; topics = { - app = mkOption { + input = mkOption { type = types.str; - description = "MQTT topic for controlling the TV's app"; + description = "MQTT topic for controlling the TV's input"; example = "home/living-room/tv/app_enum"; }; - appValues = mkOption { + inputValues = mkOption { type = types.str; description = "MQTT topic for exporting the TV's apps"; example = "home/living-room/tv/app_enum/values"; -- cgit v1.2.3