summaryrefslogtreecommitdiff
path: root/Biz/Dev/Beryllium/Ollama.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-10-25 02:10:20 -0400
committerBen Sima <ben@bsima.me>2024-12-21 10:06:48 -0500
commit8ceebbdb53ea5c67310a5281c30f53c9cf504d70 (patch)
tree17ef6c8bbe37959202ff3a77401f255573336dd1 /Biz/Dev/Beryllium/Ollama.nix
parent9293fd18d4df5383bb596fabbc6a0f2f7a46923e (diff)
Use newer ollama in system service
Ollama releases often, and nixos-24.05 has a very old version, it was preventing me from doing work. Here I'm putting the newer nixos unstable as an overlay into the 24.05 version so I can backpull versions as needed.
Diffstat (limited to 'Biz/Dev/Beryllium/Ollama.nix')
-rw-r--r--Biz/Dev/Beryllium/Ollama.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/Biz/Dev/Beryllium/Ollama.nix b/Biz/Dev/Beryllium/Ollama.nix
index 00aa327..35b4fe1 100644
--- a/Biz/Dev/Beryllium/Ollama.nix
+++ b/Biz/Dev/Beryllium/Ollama.nix
@@ -7,7 +7,8 @@
If you want to spend time on it, spend time over there.
*/
-{
+let pkg = pkgs.unstable.ollama;
+in {
systemd.services.ollama = {
description = "ollama";
@@ -23,7 +24,7 @@
};
serviceConfig = {
- ExecStart = "${pkgs.ollama}/bin/ollama serve";
+ ExecStart = "${pkg}/bin/ollama serve";
User = "ollama";
Group = "ollama";
Type = "simple";
@@ -35,7 +36,7 @@
};
# for administration, make this available to users' PATH
- environment.systemPackages = [ pkgs.ollama ];
+ environment.systemPackages = [ pkg ];
users.groups.ollama = { };