Update Ollama configuration and add Open WebUI support
- Fix ollama module by removing invalid meta section - Update grey-area ollama service configuration: - Change host binding to 0.0.0.0 for external access - Remove invalid rsyslog configuration - Enable firewall access - Add Open WebUI module with proper configuration: - Integrate with Ollama API at localhost:11434 - Disable authentication for development - Open firewall on port 8080 - Successful test build of grey-area configuration
This commit is contained in:
parent
cf11d447f4
commit
2e62c6f3bf
4 changed files with 33 additions and 17 deletions
|
@ -430,10 +430,4 @@ in {
|
|||
"d ${cfg.dataDir}/runners 0755 ${cfg.user} ${cfg.group} -"
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
maintainers = ["Geir Okkenhaug Jerstad"];
|
||||
description = "NixOS module for Ollama local LLM service";
|
||||
doc = ./ollama.md;
|
||||
};
|
||||
}
|
||||
|
|
29
modules/services/open-webui.nix
Normal file
29
modules/services/open-webui.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Open WebUI Service Configuration
|
||||
#
|
||||
# This module provides Open WebUI configuration for interacting with Ollama
|
||||
# Open WebUI provides a user-friendly web interface for local LLMs
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Enable the built-in NixOS open-webui service
|
||||
services.open-webui = {
|
||||
enable = true;
|
||||
port = 8080;
|
||||
host = "0.0.0.0";
|
||||
|
||||
environment = {
|
||||
ANONYMIZED_TELEMETRY = "False";
|
||||
DO_NOT_TRACK = "True";
|
||||
SCARF_NO_ANALYTICS = "True";
|
||||
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434";
|
||||
# Disable authentication for easier development access
|
||||
WEBUI_AUTH = "False";
|
||||
};
|
||||
};
|
||||
|
||||
# Open firewall for web interface
|
||||
networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue