fix: ollama defined twice different version bug

This commit is contained in:
2026-04-13 12:00:50 -04:00
parent 4c525f9335
commit fb8e597a43
2 changed files with 9 additions and 8 deletions

View File

@@ -213,8 +213,6 @@
gcc
xauth
burpsuite
ollama
ollama-rocm
python3
direnv # develop projects in custom environments
# hyprshot # screenshots
@@ -272,13 +270,9 @@
services.ollama = {
enable = true;
package = pkgs.ollama;
acceleration = "rocm";
environmentVariables = {
# Force Ollama to only see the dedicated GPU
HIP_VISIBLE_DEVICES = "0";
# Optional: Force the GPU architecture if discovery still fails
HSA_OVERRIDE_GFX_VERSION = "10.3.0";
};
host = "0.0.0.0";
};
services.pulseaudio.enable = false; # Use Pipewire

View File

@@ -20,6 +20,13 @@
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
nixpkgs.overlays = [
(final: prev: {
ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama;
})
];
}
];
};
};