Use ESPHome container instead of service (less errors)
This commit is contained in:
parent
79b3a0ad4d
commit
0ebf24af44
1 changed files with 13 additions and 3 deletions
|
@ -38,9 +38,19 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.esphome = {
|
||||
enable = true;
|
||||
address = "::1"; # Proxied trough home assistant
|
||||
virtualisation.oci-containers.containers.esphome = {
|
||||
image = "ghcr.io/esphome/esphome:2025.6.3";
|
||||
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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue