diff --git a/nixos/servnerr-4/containers.nix b/nixos/servnerr-4/containers.nix index 58835db..747133a 100644 --- a/nixos/servnerr-4/containers.nix +++ b/nixos/servnerr-4/containers.nix @@ -37,7 +37,12 @@ containers = { home-assistant = { image = "ghcr.io/home-assistant/home-assistant:stable"; - extraOptions = [ "--network=host" ]; + extraOptions = [ + # Expose on the host. + "--network=host" + # Pass in Home Assistant SkyConnect device. + "--device=/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_4c34810ea196ed11a365c698a7669f5d-if00-port0" + ]; ports = [ "8123:8123" ]; volumes = [ "/etc/localtime:/etc/localtime:ro" "/var/lib/hass:/config" ];