aiac: add module
This commit is contained in:
parent
142acd7a7d
commit
68a92b0301
4 changed files with 91 additions and 0 deletions
26
tests/modules/programs/aiac/example-config.nix
Normal file
26
tests/modules/programs/aiac/example-config.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue