2024-09-05 21:33:06 -04:00
|
|
|
{
|
2024-09-16 22:54:18 -04:00
|
|
|
pkgs,
|
2024-09-05 21:33:06 -04:00
|
|
|
self,
|
|
|
|
wakewords-src,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
self.nixosModules.esphome-plus
|
|
|
|
self.nixosModules.wyoming-plus
|
|
|
|
];
|
|
|
|
|
|
|
|
services = {
|
|
|
|
home-assistant = {
|
2024-11-26 01:36:26 -05:00
|
|
|
package = pkgs.home-assistant.override {
|
|
|
|
packageOverrides = final: prev: {
|
|
|
|
# HassTimer has way too many collisions with my custom timer sentences
|
|
|
|
home-assistant-intents = prev.home-assistant-intents.overrideAttrs (o: {
|
|
|
|
nativeBuildInputs = o.nativeBuildInputs ++ [pkgs.findutils];
|
|
|
|
postPatch = ''
|
|
|
|
find ./. -name "*Timer*" -delete
|
|
|
|
'';
|
|
|
|
});
|
2024-10-07 15:15:29 -04:00
|
|
|
};
|
2024-11-26 01:36:26 -05:00
|
|
|
};
|
2024-10-07 15:15:29 -04:00
|
|
|
|
2024-09-16 22:54:18 -04:00
|
|
|
customComponents = builtins.attrValues {
|
2024-09-19 22:16:11 -04:00
|
|
|
inherit
|
2024-11-20 15:17:55 -05:00
|
|
|
(self.scopedPackages.${pkgs.system}.hass-components)
|
2024-10-08 15:11:56 -04:00
|
|
|
extended-ollama-conversation # url is without subdirectory
|
2024-10-07 15:15:29 -04:00
|
|
|
ha-fallback-conversation
|
2024-09-30 12:06:05 -04:00
|
|
|
tuya-local
|
2024-09-19 22:16:11 -04:00
|
|
|
;
|
2024-09-16 22:54:18 -04:00
|
|
|
};
|
|
|
|
|
2024-09-05 21:33:06 -04:00
|
|
|
extraComponents = [
|
|
|
|
"esphome"
|
|
|
|
"ollama"
|
|
|
|
"wyoming"
|
2024-09-16 22:54:18 -04:00
|
|
|
"scrape"
|
2024-09-05 21:33:06 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2024-09-12 18:21:31 -04:00
|
|
|
openwakeword = {
|
2024-09-05 21:33:06 -04:00
|
|
|
enable = true;
|
2024-09-12 18:21:31 -04:00
|
|
|
uri = "tcp://127.0.0.1:10400";
|
|
|
|
|
2024-11-26 01:36:26 -05:00
|
|
|
threshold = 0.55;
|
2024-09-05 21:33:06 -04:00
|
|
|
customModelsDirectories = ["${wakewords-src}/en/yo_homie"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
esphome = {
|
|
|
|
enable = true;
|
|
|
|
address = "100.64.0.10";
|
|
|
|
port = 6052;
|
|
|
|
};
|
|
|
|
};
|
2024-09-05 22:42:17 -04:00
|
|
|
|
|
|
|
# In case tailscale is down
|
|
|
|
boot.kernel.sysctl."net.ipv4.ip_nonlocal_bind" = 1;
|
2024-09-05 21:33:06 -04:00
|
|
|
}
|