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 = {
|
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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue