Compare commits
2
Commits
1194076dc2
...
4a02453b74
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a02453b74 | ||
|
|
b3ab37b40b |
+21
-25
@@ -1,7 +1,7 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
service = "zigbee2mqtt";
|
service = "wyoming";
|
||||||
cfg = config.homelab.${service};
|
cfg = config.homelab.${service};
|
||||||
sec = config.sops.secrets;
|
sec = config.sops.secrets;
|
||||||
homelab = config.homelab;
|
homelab = config.homelab;
|
||||||
@@ -13,7 +13,7 @@ in
|
|||||||
# set port options
|
# set port options
|
||||||
port = lib.mkOption {
|
port = lib.mkOption {
|
||||||
type = lib.types.int;
|
type = lib.types.int;
|
||||||
default = 7705;
|
default = 7706;
|
||||||
description = "set port for ${service} (default: ${toString cfg.port}";
|
description = "set port for ${service} (default: ${toString cfg.port}";
|
||||||
};
|
};
|
||||||
url = lib.mkOption {
|
url = lib.mkOption {
|
||||||
@@ -60,31 +60,27 @@ in
|
|||||||
|
|
||||||
# enable the ${service} service
|
# enable the ${service} service
|
||||||
services.${service} = {
|
services.${service} = {
|
||||||
enable = true;
|
faster-whisper = {
|
||||||
dataDir = cfg.data_dir;
|
servers = {
|
||||||
settings = {
|
vanessa = {
|
||||||
mqtt = {
|
enable = true;
|
||||||
base_topic = "zigbee2mqtt";
|
language = "en";
|
||||||
client_id = "zigbee2mqtt";
|
uri = "tcp://0.0.0.0:${cfg.port}";
|
||||||
server = "mqtt://localhost:1883";
|
model = "medium";
|
||||||
user = "!/run/secrets/mosquitto_passwd.yaml user";
|
device = "auto";
|
||||||
password = "!/run/secrets/mosquitto_passwd.yaml password";
|
|
||||||
keepalive = 20;
|
|
||||||
};
|
};
|
||||||
serial = {
|
};
|
||||||
port = "/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_4a4e75d63653ef1198d728e0174bec31-if00-port0";
|
};
|
||||||
adapter = "ember";
|
piper = {
|
||||||
};
|
servers = {
|
||||||
advanced = {
|
vanessa = {
|
||||||
channel = 11;
|
enable = true;
|
||||||
};
|
uri = "tcp://0.0.0.0:7707";
|
||||||
frontend = {
|
|
||||||
enabled = true;
|
|
||||||
port = cfg.port;
|
|
||||||
};
|
|
||||||
homeassistant = {
|
|
||||||
enabled = true;
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Reference in New Issue
Block a user