From a2298fcfae6ff7169fec1d26bf7d5075239e2bdc Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Wed, 20 May 2026 16:46:40 -0400 Subject: [PATCH] fix: restart llama swap on config change --- modules/nixos/services/llama-swap/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nixos/services/llama-swap/default.nix b/modules/nixos/services/llama-swap/default.nix index b006d13..e7c63be 100644 --- a/modules/nixos/services/llama-swap/default.nix +++ b/modules/nixos/services/llama-swap/default.nix @@ -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";