removing cuda workaround
treefmt / nix fmt (pull_request) Successful in 5s
pytest / pytest (pull_request) Successful in 30s
test ebook search / test-ebook-search (pull_request) Successful in 35s
build_systems / build-brain (pull_request) Successful in 47s
build_systems / build-rhapsody-in-green (pull_request) Successful in 1m3s
build_systems / build-jeeves (pull_request) Successful in 4m3s
build_systems / build-bob (pull_request) Successful in 23m53s
treefmt / nix fmt (push) Successful in 5s
pytest / pytest (push) Successful in 29s
build_systems / build-brain (push) Successful in 32s
build_systems / build-bob (push) Successful in 35s
test ebook search / test-ebook-search (push) Successful in 34s
build_systems / build-rhapsody-in-green (push) Successful in 46s
build_systems / build-jeeves (push) Successful in 2m5s
treefmt / nix fmt (pull_request) Successful in 5s
pytest / pytest (pull_request) Successful in 30s
test ebook search / test-ebook-search (pull_request) Successful in 35s
build_systems / build-brain (pull_request) Successful in 47s
build_systems / build-rhapsody-in-green (pull_request) Successful in 1m3s
build_systems / build-jeeves (pull_request) Successful in 4m3s
build_systems / build-bob (pull_request) Successful in 23m53s
treefmt / nix fmt (push) Successful in 5s
pytest / pytest (push) Successful in 29s
build_systems / build-brain (push) Successful in 32s
build_systems / build-bob (push) Successful in 35s
test ebook search / test-ebook-search (push) Successful in 34s
build_systems / build-rhapsody-in-green (push) Successful in 46s
build_systems / build-jeeves (push) Successful in 2m5s
This commit was merged in pull request #50.
This commit is contained in:
1 parent
47e753f5b9
commit
bd50bd8262
1 file changed
-12
@@ -1,20 +1,8 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
let
|
|
||||||
# CMake 4.3.4 requires nvcc to be present in CUDAToolkit_ROOT.
|
|
||||||
# Remove after https://github.com/NixOS/nixpkgs/pull/545542 reaches nixos-unstable.
|
|
||||||
ollama-cuda = pkgs.ollama-cuda.overrideAttrs (oldAttrs: {
|
|
||||||
preBuild = ''
|
|
||||||
export CUDAToolkit_ROOT="${pkgs.cudaPackages.cuda_nvcc};$CUDAToolkit_ROOT"
|
|
||||||
''
|
|
||||||
+ oldAttrs.preBuild;
|
|
||||||
});
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
user = "ollama";
|
user = "ollama";
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
enable = true;
|
enable = true;
|
||||||
package = ollama-cuda;
|
|
||||||
|
|
||||||
syncModels = false;
|
syncModels = false;
|
||||||
loadModels = [
|
loadModels = [
|
||||||
|
|||||||
Reference in new issue
Block a user