add full zwave-js-ui on the main host
Some checks failed
use nix / build (push) Failing after 3m52s

This commit is contained in:
Cyryl Płotnicki 2024-06-16 12:58:06 +01:00
parent 3a5e17c17e
commit b9239ef7e7

View file

@ -10,16 +10,17 @@
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";
in { in {
imports = [../nginx.nix ./virtualisation.nix]; imports = [../nginx.nix ./virtualisation.nix];
networking.firewall.allowedTCPPorts = [port 1883 8089 8090]; networking.firewall.allowedTCPPorts = [port 1883 8089 8091];
sops.secrets."zwave-network-keys" = { virtualisation.oci-containers.containers.zwave-js = {
sopsFile = ./zwave-network-keys.json.sops; image = "zwavejs/zwave-js-ui@sha256:06fa3ff17f99ba6f57ec486b62ff497ba6d534f2ab543eddbe1f7c9a142f8933";
mode = "0440"; volumes = ["zwave-js-ui:/usr/src/app/store"];
group = "dialout"; extraOptions = ["--device=${serialPort}:/dev/zwave"];
format = "binary"; ports = ["8091:8091"];
}; };
services = { services = {
mosquitto = { mosquitto = {
@ -38,12 +39,6 @@ in {
} }
]; ];
}; };
zwave-js = {
enable = true;
serialPort = "/dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_012B8DD3-if00-port0";
port = 8090;
secretsConfigFile = config.sops.secrets."zwave-network-keys".path;
};
zigbee2mqtt = { zigbee2mqtt = {
enable = true; enable = true;
package = inputs.nixpkgs-master.legacyPackages."${system}".zigbee2mqtt; package = inputs.nixpkgs-master.legacyPackages."${system}".zigbee2mqtt;