open hass to local network

feature/wireguard
Ingolf Wagner 2023-01-18 22:09:04 +01:00
parent 4add12c084
commit 68b0e6dda1
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
1 changed files with 7 additions and 4 deletions

View File

@ -4,13 +4,16 @@
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
volumes = [ "home-assistant:/config" ];
volumes = [ "/var/lib/home-assistant:/config" ];
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
extraOptions = [
"--network=host"
];
extraOptions = [ "--network=host" ];
};
};
backup.dirs = [ "/var/lib/home-assistant" ];
networking.firewall.allowedTCPPorts = [ 8123 ];
networking.firewall.allowedUDPPorts = [ 8123 ];
}