This commit is contained in:
parent
9565e2134c
commit
f04b07ce3b
1 changed files with 6 additions and 4 deletions
|
@ -10,16 +10,18 @@
|
||||||
path = "/data/nginx";
|
path = "/data/nginx";
|
||||||
certPath = "${path}/cert.pem";
|
certPath = "${path}/cert.pem";
|
||||||
keyPath = "${path}/key.pem";
|
keyPath = "${path}/key.pem";
|
||||||
serialPort = "/dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_012B8DD3-if00-port0";
|
zwaveSerialPort = "/dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_012B8DD3-if00-port0";
|
||||||
|
zigbeeSerialPort = "/dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_012B8DD3-if01-port0";
|
||||||
in {
|
in {
|
||||||
imports = [../nginx.nix ./virtualisation.nix];
|
imports = [../nginx.nix ./virtualisation.nix];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [port 1883 8089 8091];
|
networking.firewall.allowedTCPPorts = [port 1883 8089 8091];
|
||||||
|
|
||||||
|
# sends messages to mqtt, no direct connection with home assistant
|
||||||
virtualisation.oci-containers.containers.zwave-js = {
|
virtualisation.oci-containers.containers.zwave-js = {
|
||||||
image = "zwavejs/zwave-js-ui@sha256:06fa3ff17f99ba6f57ec486b62ff497ba6d534f2ab543eddbe1f7c9a142f8933";
|
image = "zwavejs/zwave-js-ui@sha256:ad447f95ac6afbdd39bf626f751d032290ea38c203945598b2395baab3d89305";
|
||||||
volumes = ["zwave-js-ui:/usr/src/app/store"];
|
volumes = ["zwave-js-ui:/usr/src/app/store"];
|
||||||
extraOptions = ["--device=${serialPort}:/dev/zwave"];
|
extraOptions = ["--device=${zwaveSerialPort}:/dev/zwave"];
|
||||||
ports = ["8091:8091"];
|
ports = ["8091:8091"];
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
|
@ -50,7 +52,7 @@ in {
|
||||||
frontend.port = 8089;
|
frontend.port = 8089;
|
||||||
mqtt.server = "mqtt://10.0.0.8:1883";
|
mqtt.server = "mqtt://10.0.0.8:1883";
|
||||||
serial = {
|
serial = {
|
||||||
port = "/dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_012B8DD3-if01-port0";
|
port = zigbeeSerialPort;
|
||||||
baudrate = 115200;
|
baudrate = 115200;
|
||||||
adapter = "ember";
|
adapter = "ember";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue