nixos/ollama: set service working directory to home

This commit is contained in:
abysssol 2024-04-16 20:46:27 -04:00
parent 75b5594c0e
commit f53ced0368

View File

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