New Ollama.nix, the ai.nix did not work out. Added ZED-editor as separate app
This commit is contained in:
+309
-311
File diff suppressed because it is too large
Load Diff
@@ -1683,14 +1683,12 @@ in
|
|||||||
|
|
||||||
# Start Ollama service
|
# Start Ollama service
|
||||||
systemd.user.services.ollama = {
|
systemd.user.services.ollama = {
|
||||||
description = "Ollama service";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Description = "Ollama service";
|
||||||
|
WantedBy = [ "default.target" ]; # Changed from multi-user.target
|
||||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
Environment = [
|
Environment = "OLLAMA_HOST=${if ollamaHost != null then ollamaHost else "http://127.0.0.1:11434"'";
|
||||||
"OLLAMA_HOST=${if ollamaHost != null then ollamaHost else "http://127.0.0.1:11434"}"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,14 +40,12 @@ in
|
|||||||
|
|
||||||
# Start Ollama service
|
# Start Ollama service
|
||||||
systemd.user.services.ollama = {
|
systemd.user.services.ollama = {
|
||||||
description = "Ollama service";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Description = "Ollama service";
|
||||||
|
WantedBy = [ "default.target" ]; # Changed from multi-user.target
|
||||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
Environment = [
|
Environment = "OLLAMA_HOST=${if ollamaHost != null then ollamaHost else "http://127.0.0.1:11434"'";
|
||||||
"OLLAMA_HOST=${if ollamaHost != null then ollamaHost else "http://127.0.0.1:11434"}"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user