mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-09 20:33:15 -06:00
25 lines
450 B
Nix
25 lines
450 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
enabled,
|
||
|
mkOizysModule,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
inherit (pkgs) python3Packages;
|
||
|
llm-ollama = python3Packages.callPackage ../../pkgs/llm-plugins/llm-ollama { };
|
||
|
llm-claude3 = python3Packages.callPackage ../../pkgs/llm-plugins/llm-claude-3 { };
|
||
|
llm = (
|
||
|
pkgs.llm.withPlugins [
|
||
|
llm-ollama
|
||
|
llm-claude3
|
||
|
]
|
||
|
);
|
||
|
in
|
||
|
|
||
|
mkOizysModule config "llm" {
|
||
|
services.ollama = enabled;
|
||
|
environment.systemPackages = [ llm ];
|
||
|
}
|