better isolate llm

This commit is contained in:
Daylin Morgan 2024-11-07 15:19:21 -06:00
parent 0467ba7b1f
commit 543bf1dd3b
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -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 ];
}