Use ESPHome container instead of service (less errors)

This commit is contained in:
Pedro Rey Anca 2025-08-29 16:42:50 +02:00
parent 79b3a0ad4d
commit 0ebf24af44
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A

View file

@ -38,9 +38,19 @@
}; };
}; };
services.esphome = { virtualisation.oci-containers.containers.esphome = {
enable = true; image = "ghcr.io/esphome/esphome:2025.6.3";
address = "::1"; # Proxied trough home assistant volumes = [
"/var/lib/esphome:/config"
];
privileged = true;
extraOptions = ["--network=host"]; # Host networking mode is required for online status indicators
cmd = [
"dashboard"
"--address"
"::1"
"/config"
];
}; };
services.home-assistant = { services.home-assistant = {