This commit is contained in:
parent
3a5e17c17e
commit
b9239ef7e7
1 changed files with 7 additions and 12 deletions
|
@ -10,16 +10,17 @@
|
|||
path = "/data/nginx";
|
||||
certPath = "${path}/cert.pem";
|
||||
keyPath = "${path}/key.pem";
|
||||
serialPort = "/dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_012B8DD3-if00-port0";
|
||||
in {
|
||||
imports = [../nginx.nix ./virtualisation.nix];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [port 1883 8089 8090];
|
||||
networking.firewall.allowedTCPPorts = [port 1883 8089 8091];
|
||||
|
||||
sops.secrets."zwave-network-keys" = {
|
||||
sopsFile = ./zwave-network-keys.json.sops;
|
||||
mode = "0440";
|
||||
group = "dialout";
|
||||
format = "binary";
|
||||
virtualisation.oci-containers.containers.zwave-js = {
|
||||
image = "zwavejs/zwave-js-ui@sha256:06fa3ff17f99ba6f57ec486b62ff497ba6d534f2ab543eddbe1f7c9a142f8933";
|
||||
volumes = ["zwave-js-ui:/usr/src/app/store"];
|
||||
extraOptions = ["--device=${serialPort}:/dev/zwave"];
|
||||
ports = ["8091:8091"];
|
||||
};
|
||||
services = {
|
||||
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 = {
|
||||
enable = true;
|
||||
package = inputs.nixpkgs-master.legacyPackages."${system}".zigbee2mqtt;
|
||||
|
|
Loading…
Reference in a new issue