nixos-configs/devices/homie/modules/home-assistant/assist.nix
matt1432 b1f7d1f2f8
All checks were successful
Discord / discord commits (push) Has been skipped
fix(wake-word): reset settings
2024-09-13 13:18:00 -04:00

53 lines
1 KiB
Nix

{
self,
wakewords-src,
...
}: {
imports = [
self.nixosModules.esphome-plus
self.nixosModules.wyoming-plus
];
services = {
home-assistant = {
extraComponents = [
"esphome"
"ollama"
"wyoming"
];
config = {
assist_pipeline = {};
conversation = {};
media_source = {};
};
};
wyoming = {
piper.servers."en" = {
enable = true;
uri = "tcp://127.0.0.1:10200";
# see https://github.com/rhasspy/rhasspy3/blob/master/programs/tts/piper/script/download.py
voice = "en-us-ryan-low"; # using `hfc male (medium)` in GUI
speaker = 0;
};
openwakeword = {
enable = true;
uri = "tcp://127.0.0.1:10400";
customModelsDirectories = ["${wakewords-src}/en/yo_homie"];
};
};
esphome = {
enable = true;
address = "100.64.0.10";
port = 6052;
};
};
# In case tailscale is down
boot.kernel.sysctl."net.ipv4.ip_nonlocal_bind" = 1;
}