mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-14 07:57:53 -06:00
better isolate llm
This commit is contained in:
parent
0467ba7b1f
commit
543bf1dd3b
1 changed files with 15 additions and 9 deletions
|
@ -6,14 +6,20 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
selfPackages = (flake.pkgs "self");
|
||||
pyWithLlm = (
|
||||
pkgs.python3.withPackages (_: [
|
||||
selfPackages.llm
|
||||
selfPackages.llm-claude-3
|
||||
])
|
||||
);
|
||||
llm-with-plugins = (
|
||||
pkgs.writeShellScriptBin "llm" ''
|
||||
exec ${pyWithLlm}/bin/llm "$@"
|
||||
''
|
||||
);
|
||||
in
|
||||
mkOizysModule config "llm" {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(python3.withPackages (ps:
|
||||
with (flake.pkgs "self");
|
||||
[
|
||||
llm
|
||||
llm-claude-3
|
||||
]
|
||||
))
|
||||
];
|
||||
environment.systemPackages = [ llm-with-plugins ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue