This commit is contained in:
2026-02-04 18:45:32 +01:00
parent 825bdfb69f
commit 6522f7ea0b
5 changed files with 159 additions and 24 deletions

View File

@@ -1,4 +1,12 @@
{
networking.networkmanager.enable = true;
}
services.resolved = {
enable = true;
dnssec = "false";
fallbackDns = [
"1.1.1.1"
"8.8.8.8"
];
};
}

View File

@@ -14,22 +14,22 @@
Environment = [ "OLLAMA_HOST=0.0.0.0:11434" ];
};
services.open-webui = {
package = pkgs.open-webui;
enable = true;
port = 8081;
environment = {
ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True";
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";
};
};
# services.open-webui = {
# package = pkgs.open-webui;
# enable = true;
# port = 8081;
# environment = {
# ANONYMIZED_TELEMETRY = "False";
# DO_NOT_TRACK = "True";
# 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";
# };
# };
services.searx = {
enable = true;