fix: restart llama swap on config change

This commit is contained in:
2026-05-20 16:46:40 -04:00
parent 79884e8a77
commit a2298fcfae

View File

@@ -37,7 +37,6 @@ in
description = "Model swapping for LLaMA C++ Server (or any local OpenAPI compatible server)";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "exec";
ExecStart = "${lib.getExe llama-swap} --listen :8080 --config ${
@@ -97,6 +96,7 @@ in
};
}) apiKeys);
templates."llama-swap.json" = {
restartUnits = [ "llama-swap.service" ];
owner = "llama-swap";
group = "llama-swap";
mode = "0400";