Commit 5bdecea1 authored by Thiago Kenji Okada's avatar Thiago Kenji Okada
Browse files

nixos/ollama: add network-online.target to ollama-model-loader.service

This should avoid the service failing to start after switching to a new
configuration because the network service was restarted.
parent 2f8e099a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -270,7 +270,11 @@ in
        "multi-user.target"
        "ollama.service"
      ];
      after = [ "ollama.service" ];
      wants = [ "network-online.target" ];
      after = [
        "ollama.service"
        "network-online.target"
      ];
      bindsTo = [ "ollama.service" ];
      environment = config.systemd.services.ollama.environment;
      serviceConfig = {