Merge pull request #304737 from abysssol/ollama-work-dir

nixos/ollama: set service working directory to `home`
This commit is contained in:
Pol Dellaiera 2024-04-17 10:20:45 +02:00 committed by GitHub
commit a844e1accb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ in
}; };
serviceConfig = { serviceConfig = {
ExecStart = "${lib.getExe ollamaPackage} serve"; ExecStart = "${lib.getExe ollamaPackage} serve";
WorkingDirectory = "%S/ollama"; WorkingDirectory = cfg.home;
StateDirectory = [ "ollama" ]; StateDirectory = [ "ollama" ];
DynamicUser = true; DynamicUser = true;
}; };