From b5904d9573bb8c983f5c728742f2a46969575cfe Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Mon, 6 Oct 2025 11:57:30 +0100 Subject: [PATCH] hosts/pi: add connection to LG TV --- hosts/pi/README.md | 1 + hosts/pi/default.nix | 27 +++++++++++++++++++-------- hosts/pi/home-assistant/default.nix | 1 + 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/hosts/pi/README.md b/hosts/pi/README.md index d398e09..5aef94d 100644 --- a/hosts/pi/README.md +++ b/hosts/pi/README.md @@ -27,3 +27,4 @@ SD card | `/dev/mmcblk0` (ext4, NixOS Root) - HDMI to ONKYO HT-R990 - S/PDIF to ONKYO HT-R990 - Ethernet to ONKYO HT-R990 +- Ethernet to LG TV diff --git a/hosts/pi/default.nix b/hosts/pi/default.nix index 64a4212..fa94c7b 100644 --- a/hosts/pi/default.nix +++ b/hosts/pi/default.nix @@ -131,14 +131,25 @@ }; }; - # Connection to ONKYO HT-R990 - networking.interfaces.end0 = { - ipv4.addresses = [ - { - address = "172.16.0.1"; - prefixLength = 30; - } - ]; + networking.interfaces = { + # Connection to ONKYO HT-R990 + end0 = { + ipv4.addresses = [ + { + address = "172.16.0.1"; + prefixLength = 30; + } + ]; + }; + # Connection to LG TV + enp1s0u2 = { + ipv4.addresses = [ + { + address = "172.16.1.1"; + prefixLength = 30; + } + ]; + }; }; environment.systemPackages = with pkgs; [ diff --git a/hosts/pi/home-assistant/default.nix b/hosts/pi/home-assistant/default.nix index f3493b1..70ea937 100644 --- a/hosts/pi/home-assistant/default.nix +++ b/hosts/pi/home-assistant/default.nix @@ -244,6 +244,7 @@ "wake_on_lan" "water_heater" "weather" + "webostv" "websocket_api" "wled" "workday"