From ad33b3cc071e2667aa632504012a803ec51e9bd1 Mon Sep 17 00:00:00 2001 From: oqyude Date: Mon, 8 Sep 2025 15:07:19 +0300 Subject: [PATCH] 123 --- nixosModules/software/aichat.nix | 24 ++++++++++++++++++++++++ nixosModules/wsl/default.nix | 1 + 2 files changed, 25 insertions(+) create mode 100644 nixosModules/software/aichat.nix diff --git a/nixosModules/software/aichat.nix b/nixosModules/software/aichat.nix new file mode 100644 index 0000000..4481f9b --- /dev/null +++ b/nixosModules/software/aichat.nix @@ -0,0 +1,24 @@ +{ + config, + lib, + pkgs, + xlib, + ... +}: +{ + # services = { + # nextjs-ollama-llm-ui.enable = false; + # ollama = { + # enable = false; + # package = pkgs.ollama-rocm; + # environmentVariables = { + # HSA_OVERRIDE_GFX_VERSION = "11.5.0"; + # HCC_AMDGPU_TARGET = "gfx1150"; # used to be necessary, but doesn't seem to anymore + # }; + # user = "ollama"; # "${xlib.device.username}"; + # group = "ollama"; + # acceleration = "rocm"; + # rocmOverrideGfx = "11.5.0"; + # }; + # }; +} diff --git a/nixosModules/wsl/default.nix b/nixosModules/wsl/default.nix index 9828773..274e602 100755 --- a/nixosModules/wsl/default.nix +++ b/nixosModules/wsl/default.nix @@ -7,6 +7,7 @@ imports = [ ../software/beets ../software/whisper.nix + ../software/aichat.nix #../services/tts.nix #../server/open-webui.nix ];