From 93ef99b14be27983ee36900125867894762b748a Mon Sep 17 00:00:00 2001 From: oqyude Date: Thu, 31 Jul 2025 12:16:30 +0300 Subject: [PATCH] 123 --- devices/hardware/mini-pc.nix | 10 ++++------ modules/software/ai.nix | 24 ++++++++++++++++-------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/devices/hardware/mini-pc.nix b/devices/hardware/mini-pc.nix index a7f0f0f..f2ba8b9 100755 --- a/devices/hardware/mini-pc.nix +++ b/devices/hardware/mini-pc.nix @@ -16,7 +16,6 @@ "/dev/dri/renderD128" ]; - imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; @@ -31,7 +30,10 @@ "usbhid" "sd_mod" ]; - kernelModules = [ "kvm-amd" "amdgpu" ]; + kernelModules = [ + "kvm-amd" + "amdgpu" + ]; extraModulePackages = [ ]; }; @@ -42,10 +44,6 @@ systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ]; -# -# environment.systemPackages = with pkgs; [ -# clinfo -# ]; fileSystems = { "/" = { diff --git a/modules/software/ai.nix b/modules/software/ai.nix index 956cfac..fa12dfd 100755 --- a/modules/software/ai.nix +++ b/modules/software/ai.nix @@ -10,21 +10,29 @@ nextjs-ollama-llm-ui.enable = true; ollama = { enable = true; - package = pkgs.ollama; - user = "ollama"; #"${inputs.zeroq.devices.admin}"; + package = pkgs.ollama-rocm; + environmentVariables = { + HCC_AMDGPU_TARGET = "gfx1150"; # used to be necessary, but doesn't seem to anymore + }; + user = "ollama"; # "${inputs.zeroq.devices.admin}"; group = "ollama"; # home = "/home/${inputs.zeroq.devices.admin}/.ollama"; # models = "${inputs.zeroq.dirs.vetymae-drive}/AI/Ollama/models"; acceleration = "rocm"; - #rocmOverrideGfx = "11.5.0"; + rocmOverrideGfx = "11.5.0"; }; }; - users = { - ollama = { - ollama.isSystemUser = true; - }; - }; + services.open-webui.enable = true; + + nixpkgs.config.permittedInsecurePackages = [ + "libsoup-2.74.3" + ]; + # users = { + # ollama = { + # ollama.isSystemUser = true; + # }; + # }; environment.systemPackages = with pkgs; [ lmstudio ]; }