mods: add a mods module (#6339)

This commit is contained in:
Ilya Savitsky 2025-03-10 04:05:08 +00:00 committed by GitHub
parent ce9cb2496c
commit 744f749dd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 126 additions and 0 deletions

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