patch cuda
treefmt / nix fmt (pull_request) Successful in 6s
pytest / pytest (pull_request) Successful in 32s
test ebook search / test-ebook-search (pull_request) Successful in 46s
build_systems / build-brain (pull_request) Successful in 54s
build_systems / build-rhapsody-in-green (pull_request) Successful in 1m15s
build_systems / build-jeeves (pull_request) Successful in 4m38s
build_systems / build-bob (pull_request) Successful in 28m10s
treefmt / nix fmt (push) Successful in 5s
pytest / pytest (push) Successful in 31s
test ebook search / test-ebook-search (push) Successful in 36s
build_systems / build-brain (push) Successful in 38s
build_systems / build-bob (push) Successful in 38s
build_systems / build-rhapsody-in-green (push) Successful in 51s
build_systems / build-jeeves (push) Successful in 2m12s

This commit was merged in pull request #44.
This commit is contained in:
2026-07-25 14:21:07 -04:00
parent 89e24c45a0
commit e57895cc6e
+12
View File
@@ -1,8 +1,20 @@
{ 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 = {
user = "ollama";
host = "0.0.0.0";
enable = true;
package = ollama-cuda;
syncModels = false;
loadModels = [