nixos-configs/legacyPackages/hass-addons/home-llm.nix
matt1432 761e0487ee
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): use LLM as voice assistant
2024-09-02 22:14:49 -04:00

27 lines
688 B
Nix

{
buildHomeAssistantComponent,
home-llm-src,
python3Packages,
...
}: let
manifest = builtins.fromJSON (builtins.readFile "${home-llm-src}/custom_components/llama_conversation/manifest.json");
in
buildHomeAssistantComponent {
owner = "acon96";
inherit (manifest) domain version;
src = home-llm-src;
postPatch = ''
substituteInPlace ./custom_components/llama_conversation/manifest.json \
--replace-warn "huggingface-hub==0.23.0" "huggingface-hub>=0.23.0" \
--replace-warn "webcolors<=1.13" "webcolors>=1.13"
'';
propagatedBuildInputs = with python3Packages; [
huggingface-hub
requests
webcolors
];
}