From 1930e7fc17ae12c23c523ba8a547492dd1b869ce Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Fri, 28 Feb 2025 10:38:15 +0100 Subject: [PATCH] [Desktop/Developer] use ollama from nixpkgs unstable (rebuilt with callPackage) --- desktop/developer.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop/developer.nix b/desktop/developer.nix index e82ac2b..df230b1 100644 --- a/desktop/developer.nix +++ b/desktop/developer.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, nixpkgs-unstable, ... }: with lib; let cfg = config.aviallon.developer; @@ -131,10 +131,10 @@ in { user = "ollama"; package = if config.aviallon.hardware.amd.enable - then pkgs.unstable.ollama-rocm + then (pkgs.callPackage (nixpkgs-unstable + "pkgs/by-name/ol/ollama") { acceleration = "rocm"; }) else if (config.aviallon.hardware.nvidia.enable && config.aviallon.hardware.nvidia.variant != "nouveau") - then pkgs.unstable.ollama-cuda - else pkgs.unstable.ollama + then (pkgs.callPackage (nixpkgs-unstable + "pkgs/by-name/ol/ollama") { acceleration = "cuda"; }) + else (pkgs.callPackage (nixpkgs-unstable + "pkgs/by-name/ol/ollama") {}) ; };