feat: add OpenWebUI service configuration

Introduce a new NixOS configuration for the OpenWebUI service, enabling it by default on port 8080. The setup includes environment settings to disable telemetry and authentication, and it adds the openwebui.nix to the system modules.
This commit is contained in:
Harald Hoyer 2024-12-06 08:56:37 +01:00
parent b0f42bce29
commit 29ca755e06
2 changed files with 17 additions and 0 deletions

View file

@ -10,6 +10,7 @@
./fileserver.nix ./fileserver.nix
./backup.nix ./backup.nix
./network.nix ./network.nix
./openwebui.nix
]; ];
sops.secrets.pccs.sopsFile = ../../../.secrets/sgx/pccs.yaml; sops.secrets.pccs.sopsFile = ../../../.secrets/sgx/pccs.yaml;

View file

@ -0,0 +1,16 @@
{ ... }:
{
services.open-webui = {
enable = true;
port = 8080;
host = "0.0.0.0";
enviroment = {
ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
OLLAMA_API_BASE_URL = "http://m4:11434";
# Disable authentication
WEBUI_AUTH = "False";
};
};
}