diff --git a/nixos/modules/services/misc/llama-cpp.nix b/nixos/modules/services/misc/llama-cpp.nix index 65ed2880b0b2..df9538d5137c 100644 --- a/nixos/modules/services/misc/llama-cpp.nix +++ b/nixos/modules/services/misc/llama-cpp.nix @@ -77,6 +77,10 @@ in serviceConfig = { Type = "idle"; KillSignal = "SIGINT"; + StateDirectory = "llama-cpp"; + CacheDirectory = "llama-cpp"; + WorkingDirectory = "/var/lib/llama-cpp"; + Environment = [ "LLAMA_CACHE=/var/cache/llama-cpp" ]; ExecStart = let args = [