feat(nix): add environment variable for `ollama-serve`

By default ollama only listens to requests from same machine
(`127.0.0.1`). Change it to `0.0.0.0` to accept requests from broader
interfaces

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>

boltless.me 80a9b7ec 835829b9

verified
Changed files
+3
nix
+3
nix/darwin.nix
··· 19 19 # - https://www.danielcorin.com/til/nix-darwin/launch-agents/ 20 20 # - https://medium.com/@anand34577/setting-up-ollama-as-a-background-service-on-macos-66f7492b5cc8 21 21 ollama-serve = { 22 + environment = { 23 + OLLAMA_HOST = "0.0.0.0"; 24 + }; 22 25 serviceConfig = { 23 26 Label = "com.ollama.serve"; 24 27 ProgramArguments = [ "${pkgs.ollama}/bin/ollama" "serve" ];