nixos-config/modules/services/home-assistant.nix

16 lines
533 B
Nix
Raw Permalink Normal View History

2025-04-19 00:13:35 +02:00
{
networking.firewall.allowedTCPPorts = [ 8123 ];
virtualisation.oci-containers = {
backend = "docker";
containers.homeassistant = {
volumes = [ "home-assistant:/config" ];
environment.TZ = "Europe/Amsterdam";
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [
"--network=host"
# "--device=/dev/ttyACM0:/dev/ttyACM0" # Example, change this to match your own hardware
];
2025-04-19 00:13:35 +02:00
};
};
}