Files
home-manager/tests/modules/programs/aichat/settings.nix
jaredmontoya 86b95fc1ed aichat: init (#7207)
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.
2025-06-04 13:35:39 -05:00

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}
'';
}