1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/aiac/example-config.nix
2025-09-24 16:11:30 -05:00

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