This commit is contained in:
mjallen18
2026-04-14 17:45:29 -05:00
parent 616d357a59
commit 004eb3c29c

View File

@@ -13,7 +13,10 @@ in
virtualisation.oci-containers.containers.esphome = { virtualisation.oci-containers.containers.esphome = {
autoStart = true; autoStart = true;
image = "ghcr.io/esphome/esphome"; image = "ghcr.io/esphome/esphome";
ports = [ "6052:6052" ]; # host networking is required for mDNS (multicast UDP) to work so that
# ESPHome can discover devices via <name>.local and perform OTA updates
# without needing to know device IPs in advance.
extraOptions = [ "--network=host" ];
devices = [ devices = [
"/dev/ttyUSB0" "/dev/ttyUSB0"
]; ];