fix: ollama defined twice different version bug
This commit is contained in:
@@ -213,8 +213,6 @@
|
|||||||
gcc
|
gcc
|
||||||
xauth
|
xauth
|
||||||
burpsuite
|
burpsuite
|
||||||
ollama
|
|
||||||
ollama-rocm
|
|
||||||
python3
|
python3
|
||||||
direnv # develop projects in custom environments
|
direnv # develop projects in custom environments
|
||||||
# hyprshot # screenshots
|
# hyprshot # screenshots
|
||||||
@@ -272,13 +270,9 @@
|
|||||||
|
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.ollama;
|
||||||
acceleration = "rocm";
|
acceleration = "rocm";
|
||||||
environmentVariables = {
|
host = "0.0.0.0";
|
||||||
# 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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.pulseaudio.enable = false; # Use Pipewire
|
services.pulseaudio.enable = false; # Use Pipewire
|
||||||
|
|||||||
@@ -20,6 +20,13 @@
|
|||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user