home-lab/modules/services/open-webui.nix
Geir Okkenhaug Jerstad 2e62c6f3bf 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
2025-06-14 08:24:41 +02:00

29 lines
718 B
Nix

# 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 ];
}