everything just works lets leave it like that

This commit is contained in:
2025-11-06 22:10:41 +01:00
parent 9ba39dbff4
commit ddfde55edf
4 changed files with 82 additions and 48 deletions

View File

@@ -1,6 +1,9 @@
{config, pkgs-unstable, ... }:
{
services.ollama = {
enable = true;
package = pkgs-unstable.ollama;
acceleration = "cuda";
};
@@ -9,6 +12,7 @@
};
services.open-webui = {
package = pkgs-unstable.open-webui;
enable = true;
port = 8081;
environment = {
@@ -17,6 +21,10 @@
SCARF_NO_ANALYTICS = "True";
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api";
OLLAMA_BASE_URL = "http://127.0.0.1:11434";
WEBUI_AUTH = "False";
FRONTEND_BUILD_DIR = "${config.services.open-webui.stateDir}/build";
DATA_DIR = "${config.services.open-webui.stateDir}/data";
STATIC_DIR = "${config.services.open-webui.stateDir}/static";
};
};