mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
aichat is an all in one CLI tool for AI interactions. On first run it prompts you to create a config so I made a home manager module to do this declaratively.
27 lines
561 B
Nix
27 lines
561 B
Nix
{ ... }:
|
|
{
|
|
programs.aichat = {
|
|
enable = true;
|
|
settings = {
|
|
model = "Ollama:mistral-small:latest";
|
|
clients = [
|
|
{
|
|
type = "openai-compatible";
|
|
name = "Ollama";
|
|
api_base = "http://localhost:11434/v1";
|
|
models = [
|
|
{
|
|
name = "llama3.2:latest";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/aichat/config.yaml
|
|
assertFileContent home-files/.config/aichat/config.yaml \
|
|
${./settings.yml}
|
|
'';
|
|
}
|