mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
26 lines
542 B
Nix
26 lines
542 B
Nix
{
|
|
programs.aiac = {
|
|
enable = true;
|
|
settings = {
|
|
default_backend = "official_openai";
|
|
backends = {
|
|
official_openai = {
|
|
type = "openai";
|
|
api_key = "API KEY";
|
|
default_model = "gpt-4o";
|
|
};
|
|
|
|
localhost = {
|
|
type = "ollama";
|
|
url = "http://localhost:11434/api";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/aiac/aiac.toml
|
|
assertFileContent home-files/.config/aiac/aiac.toml \
|
|
${./aiac.toml}
|
|
'';
|
|
}
|