Files
nixos/modules/server/ai.nix
T
2025-07-31 19:54:36 +03:00

30 lines
667 B
Nix
Executable File

{ inputs, ... }@flakeContext:
{
config,
lib,
pkgs,
...
}:
let
unfree = import inputs.nixpkgs-webui { system = "x86_64-linux"; config.allowUnfree = true; }; # temp
in
{
services = {
open-webui = {
enable = false;
package = unfree.open-webui;
host = "0.0.0.0";
port = 11111;
openFirewall = true;
environment = {
ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
OPENAI_API_BASE_URL = "http://192.168.1.100:1234/v1";
#OLLAMA_API_BASE_URL = "http://127.0.0.1:1234";
#WEBUI_AUTH = "False"; # Disable authentication
};
};
};
}