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
1 changed files with 1 additions and 1 deletions

View File

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