1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-26 01:51:37 +00:00
home-manager/tests/modules/programs/mods/basic-configuration.nix
2025-03-09 23:05:08 -05:00

22 lines
579 B
Nix

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