diff --git a/home/jashton.nix b/home/jashton.nix index 40a3d97..6fa4f8e 100644 --- a/home/jashton.nix +++ b/home/jashton.nix @@ -243,6 +243,9 @@ in "qwen3.6:35b-a3b-q4_K_M" = { name = "Qwen3.6 35B Thinker"; }; + "codestral:22b" = { + name = "codestral 22B"; + }; }; }; }; diff --git a/hosts/lilac/default.nix b/hosts/lilac/default.nix index ed8bd1b..94333ea 100644 --- a/hosts/lilac/default.nix +++ b/hosts/lilac/default.nix @@ -61,10 +61,15 @@ in enable = true; enable32Bit = true; extraPackages = with pkgs; [ - intel-media-driver # Hardware acceleration + intel-media-driver # Hardware video acceleration intel-vaapi-driver vpl-gpu-rt # Video processing runtime intel-compute-runtime # OpenCL + Level Zero GPU compute (Arc iGPU) + + # Explicit Vulkan Support for Ollama-Vulkan + vulkan-loader + vulkan-validation-layers + vulkan-tools # Useful for running `vulkaninfo` to verify the iGPU ]; extraPackages32 = with pkgs.pkgsi686Linux; [ intel-media-driver @@ -77,5 +82,15 @@ in services.ollama = { enable = true; package = unstable.ollama-vulkan; + + # Environment tweaks to manage Vulkan layers and memory boundaries + environmentVariables = { + # Forces Ollama to strictly leverage Vulkan device routing + GGML_VULKAN_DEVICE = "0"; + + # Hints the runner to allocate maximum context buffers in unified memory + # Adjust this if your desktop environment + apps feel constrained, but with 64GB you're safe. + OLLAMA_NUM_PARALLEL = "1"; + }; }; }