open hass to local network
This commit is contained in:
parent
4add12c084
commit
68b0e6dda1
1 changed files with 7 additions and 4 deletions
|
@ -4,13 +4,16 @@
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "podman";
|
backend = "podman";
|
||||||
containers.homeassistant = {
|
containers.homeassistant = {
|
||||||
volumes = [ "home-assistant:/config" ];
|
volumes = [ "/var/lib/home-assistant:/config" ];
|
||||||
environment.TZ = "Europe/Berlin";
|
environment.TZ = "Europe/Berlin";
|
||||||
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
|
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
|
||||||
extraOptions = [
|
extraOptions = [ "--network=host" ];
|
||||||
"--network=host"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
backup.dirs = [ "/var/lib/home-assistant" ];
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 8123 ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ 8123 ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue