mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
Revert "[Desktop/Developer] use ollama from nixpkgs unstable (rebuilt with callPackage)"
This reverts commit 1930e7fc17.
This commit is contained in:
parent
269bc05c2b
commit
a466ab78f6
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, nixpkgs-unstable, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.developer;
|
||||
|
|
@ -131,10 +131,10 @@ in {
|
|||
user = "ollama";
|
||||
package =
|
||||
if config.aviallon.hardware.amd.enable
|
||||
then (pkgs.callPackage (nixpkgs-unstable + "pkgs/by-name/ol/ollama") { acceleration = "rocm"; })
|
||||
then pkgs.unstable.ollama-rocm
|
||||
else if (config.aviallon.hardware.nvidia.enable && config.aviallon.hardware.nvidia.variant != "nouveau")
|
||||
then (pkgs.callPackage (nixpkgs-unstable + "pkgs/by-name/ol/ollama") { acceleration = "cuda"; })
|
||||
else (pkgs.callPackage (nixpkgs-unstable + "pkgs/by-name/ol/ollama") {})
|
||||
then pkgs.unstable.ollama-cuda
|
||||
else pkgs.unstable.ollama
|
||||
;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue