summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 30c2b26d8322..17f5d92c1c86 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;
};