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