mods: add a mods module (#6339)
This commit is contained in:
parent
ce9cb2496c
commit
744f749dd6
8 changed files with 126 additions and 0 deletions
22
tests/modules/programs/mods/basic-configuration.nix
Normal file
22
tests/modules/programs/mods/basic-configuration.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }: {
|
||||
config = {
|
||||
programs.mods = {
|
||||
enable = true;
|
||||
package = pkgs.writeScriptBin "dummy-mods" "";
|
||||
settings = {
|
||||
default-model = "llama3.2";
|
||||
apis = {
|
||||
ollama = {
|
||||
base-url = "http://localhost:11434/api";
|
||||
models = { "llama3.2" = { max-input-chars = 650000; }; };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/mods/mods.yml
|
||||
assertFileContent home-files/.config/mods/mods.yml \
|
||||
${./basic-configuration.yml}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue