diff options
Diffstat (limited to 'nixos/modules/services/catbus-actuator-lgtv.nix')
-rw-r--r-- | nixos/modules/services/catbus-actuator-lgtv.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/nixos/modules/services/catbus-actuator-lgtv.nix b/nixos/modules/services/catbus-actuator-lgtv.nix index 73a2c72..051da5b 100644 --- a/nixos/modules/services/catbus-actuator-lgtv.nix +++ b/nixos/modules/services/catbus-actuator-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"; 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"; |