From 8ceebbdb53ea5c67310a5281c30f53c9cf504d70 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 25 Oct 2024 02:10:20 -0400 Subject: 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. --- Biz/Dev/Beryllium/Ollama.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Biz/Dev/Beryllium') 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 = { }; -- cgit v1.2.3