mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
ai setup
This commit is contained in:
+13
-4
@@ -7,11 +7,22 @@
|
||||
}:
|
||||
{
|
||||
services = {
|
||||
nextjs-ollama-llm-ui.enable = true;
|
||||
ollama = {
|
||||
nextjs-ollama-llm-ui.enable = false;
|
||||
open-webui = {
|
||||
enable = true;
|
||||
environment = {
|
||||
ANONYMIZED_TELEMETRY = "False";
|
||||
DO_NOT_TRACK = "True";
|
||||
SCARF_NO_ANALYTICS = "True";
|
||||
OLLAMA_API_BASE_URL = "http://127.0.0.1:1234";
|
||||
WEBUI_AUTH = "False"; # Disable authentication
|
||||
};
|
||||
};
|
||||
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"; # "${inputs.zeroq.devices.admin}";
|
||||
@@ -23,8 +34,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.open-webui.enable = true;
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"libsoup-2.74.3"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user