feat(home-assistant): setup on faunus-ater
This commit is contained in:
parent
ec0bf56f57
commit
b0a4e07e20
|
@ -151,6 +151,30 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."config.home" = mkVirtHost {
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8123";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
virtualisation.oci-containers.containers.home-assistant = {
|
||||
volumes = ["/data/dirty/home-assistant:/config"];
|
||||
environment.TZ = "Europe/Berlin";
|
||||
image = "ghcr.io/home-assistant/home-assistant:2023.9";
|
||||
ports = [
|
||||
"8123:8123"
|
||||
"1400:1400/tcp"
|
||||
];
|
||||
extraOptions = [
|
||||
# TODO: Fix the path of the zigbee controller using udev
|
||||
"--device=/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0"
|
||||
"--device=/dev/ttyUSB0"
|
||||
"--cap-add=CAP_NET_RAW,CAP_NET_BIND_SERVICE"
|
||||
];
|
||||
};
|
||||
# For SONOS
|
||||
networking.firewall.allowedTCPPorts = [1400];
|
||||
|
||||
# === Dim ===
|
||||
# virtualisation.oci-containers.containers."dim" = {
|
||||
# environment = {};
|
||||
|
|
Loading…
Reference in a new issue