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.
This commit is contained in:
Thiago Kenji Okada
2025-09-16 10:17:14 +01:00
parent 2f8e099a1a
commit 5bdecea140
+5 -1
View File
@@ -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 = {