about summary refs log tree commit diff
diff options
context:
space:
mode:
authorabysssol <abysssol@pm.me>2024-04-16 20:46:27 -0400
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-04-17 08:24:28 +0000
commit78fcbd38791130665101d8f2ad34e48fe3898aa4 (patch)
tree74709bd6d1c17f8f61ddddf43bbcf8929b3ecafe
parent1bf7d3e7d2aaa667365fb3bc8673760ffbaca7bb (diff)
nixos/ollama: set service working directory to `home`
(cherry picked from commit f53ced0368afd9eac3c9d63397f6619d5ac9a8e2)
-rw-r--r--nixos/modules/services/misc/ollama.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/ollama.nix b/nixos/modules/services/misc/ollama.nix
index 30c2b26d8322e..17f5d92c1c864 100644
--- a/nixos/modules/services/misc/ollama.nix
+++ b/nixos/modules/services/misc/ollama.nix
@@ -80,7 +80,7 @@ in
       };
       serviceConfig = {
         ExecStart = "${lib.getExe ollamaPackage} serve";
-        WorkingDirectory = "%S/ollama";
+        WorkingDirectory = cfg.home;
         StateDirectory = [ "ollama" ];
         DynamicUser = true;
       };