all repos — nixfiles @ ac1a70b76f14903acb76f7c96afa6c9dad3887ce

System and user configuration, managed by nix and home-manager

marvin: update llama.cpp config

Alan Pearce
commit

ac1a70b76f14903acb76f7c96afa6c9dad3887ce

parent

b0e6115404771bc8c09e655c1c728cddbe33c6a4

1 file changed, 21 insertions(+), 18 deletions(-)

changed files
M user/hosts/marvin.nix → user/hosts/marvin.nix
@@ -89,25 +89,28 @@ };
}; llama-server = { enable = true; - config = { - ProgramArguments = [ - "${pkgs.llama-cpp}/bin/llama-server" - "--port" - "9090" - "--models-preset" - "${config.xdg.configHome}/llama/presets.ini" - ]; - RunAtLoad = true; - KeepAlive = true; - WorkingDirectory = "/Users/alan"; - StandardOutPath = "/Users/alan/Library/Logs/llama-server.log"; - StandardErrorPath = "/Users/alan/Library/Logs/llama-server.log"; - }; + config = + let + presets = "${nixfiles}/user/settings/llama/presets.ini"; + in + { + ProgramArguments = [ + "${pkgs.llama-cpp}/bin/llama-server" + "--port" + "9090" + "--models-preset" + "${presets}" + ]; + RunAtLoad = true; + KeepAlive = true; + WorkingDirectory = "/Users/alan"; + StandardOutPath = "/Users/alan/Library/Logs/llama-server.log"; + StandardErrorPath = "/Users/alan/Library/Logs/llama-server.log"; + WatchPaths = [ + "${presets}" + ]; + }; }; - }; - - xdg.configFile."llama/presets.ini" = { - source = direct_symlink "/user/settings/llama/presets.ini"; }; xdg.configFile."raycast/ai/providers.yaml" = {