From f53ced0368afd9eac3c9d63397f6619d5ac9a8e2 Mon Sep 17 00:00:00 2001 From: abysssol Date: Tue, 16 Apr 2024 20:46:27 -0400 Subject: [PATCH] nixos/ollama: set service working directory to `home` --- nixos/modules/services/misc/ollama.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/ollama.nix b/nixos/modules/services/misc/ollama.nix index b2c3de09015b..948c8f17f989 100644 --- a/nixos/modules/services/misc/ollama.nix +++ b/nixos/modules/services/misc/ollama.nix @@ -85,7 +85,7 @@ in }; serviceConfig = { ExecStart = "${lib.getExe ollamaPackage} serve"; - WorkingDirectory = "%S/ollama"; + WorkingDirectory = cfg.home; StateDirectory = [ "ollama" ]; DynamicUser = true; };