chore: get rid of home-llm
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-09-17 22:30:10 -04:00
parent fcae0f3849
commit 4891913471
5 changed files with 0 additions and 57 deletions

View file

@ -527,22 +527,6 @@
"type": "github"
}
},
"home-llm-src": {
"flake": false,
"locked": {
"lastModified": 1726328658,
"narHash": "sha256-+eYfywWjSBc/zrAjAU9nGPwS0SO6yRqOwaStgieVSU8=",
"owner": "acon96",
"repo": "home-llm",
"rev": "4f145d29224ab33d151e90cccdba87131c3b7b19",
"type": "github"
},
"original": {
"owner": "acon96",
"repo": "home-llm",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -1648,7 +1632,6 @@
"gtk-session-lock": "gtk-session-lock",
"gtk-theme-src": "gtk-theme-src",
"headscale": "headscale",
"home-llm-src": "home-llm-src",
"home-manager": "home-manager",
"hyprgrass": "hyprgrass",
"hyprland": "hyprland",

View file

@ -123,12 +123,6 @@
rev = "022fb24cd92035470496d50d86bf8c9ee74b1e7e";
type = "github";
};
home-llm-src = {
flake = false;
owner = "acon96";
repo = "home-llm";
type = "github";
};
home-manager = {
inputs.nixpkgs.follows = "nixpkgs";
owner = "nix-community";

View file

@ -163,10 +163,6 @@ let
srcs = [
# Home-assistant
{
owner = "acon96";
repo = "home-llm";
}
{
name = "extended-ollama-conversation-src";
owner = "TheNimaj";

View file

@ -3,6 +3,5 @@ pkgs.lib.makeScope pkgs.newScope (hass: let
buildHassComponent = file:
hass.callPackage file (inputs // {});
in {
home-llm = buildHassComponent ./home-llm.nix;
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation.nix;
})

View file

@ -1,29 +0,0 @@
{
buildHomeAssistantComponent,
home-llm-src,
python3Packages,
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${home-llm-src}/custom_components/llama_conversation/manifest.json");
in
buildHomeAssistantComponent {
owner = "acon96";
inherit (manifest) domain version;
src = home-llm-src;
# FIXME: remove this on next release https://github.com/acon96/home-llm/issues/214
postPatch = ''
substituteInPlace ./custom_components/llama_conversation/manifest.json \
--replace-warn "huggingface-hub==0.23.0" "huggingface-hub>=0.23.0"
'';
propagatedBuildInputs = with python3Packages; [
huggingface-hub
requests
webcolors
];
}