{ pkgs, ... }: { virtualisation.oci-containers = { backend = "docker"; containers.homeassistant = { volumes = [ "/srv/home-assistant:/config" "/etc/localtime:/etc/localtime:ro" "/run/dbus:/run/dbus:ro" ]; environment.TZ = "Europe/Warsaw"; image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated extraOptions = [ "--network=host" ]; autoStart = true; }; }; networking.firewall.allowedTCPPorts = [ 8123 ]; }