From fb8e597a436da0eeb9646f58e62e963b9b2a1430 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 13 Apr 2026 12:00:50 -0400 Subject: [PATCH] fix: ollama defined twice different version bug --- configuration.nix | 10 ++-------- flake.nix | 7 +++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/configuration.nix b/configuration.nix index 3ed9126..af8dc39 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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 diff --git a/flake.nix b/flake.nix index f2f2e63..6fec3be 100644 --- a/flake.nix +++ b/flake.nix @@ -20,6 +20,13 @@ modules = [ ./configuration.nix home-manager.nixosModules.home-manager + { + nixpkgs.overlays = [ + (final: prev: { + ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama; + }) + ]; + } ]; }; };