mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-15 08:27:53 -06:00
25 lines
414 B
Nix
25 lines
414 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
mkOizysModule,
|
|
flake,
|
|
...
|
|
}:
|
|
|
|
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 = [ llm-with-plugins ];
|
|
}
|