nixos-config/nixos/machines/chungus/hass.nix

17 lines
481 B
Nix
Raw Normal View History

2023-05-05 22:33:05 +02:00
{ config, lib, pkgs, ... }:
{
virtualisation.oci-containers = {
containers.homeassistant = {
volumes = [ "/srv/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" ];
};
};
networking.firewall.allowedTCPPorts = [ 8123 ];
networking.firewall.allowedUDPPorts = [ 8123 ];
}