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