feat(open-webui): update configuration

This commit is contained in:
Felix Schröter 2025-02-13 23:21:21 +01:00
parent c4bc131bfa
commit 5d22ee3c01
Signed by: felschr
GPG key ID: 671E39E6744C807D
2 changed files with 29 additions and 1 deletions

View file

@ -19,6 +19,7 @@
../services/samba/home-pc.nix
../services/restic/home-pc.nix
../services/pcscd.nix
../services/open-webui.nix
];
nixpkgs.config.allowUnfree = true;

View file

@ -1,9 +1,36 @@
{ pkgs, ... }:
{
config,
inputs,
pkgs,
...
}:
{
disabledModules = [
"services/misc/ollama.nix"
"services/misc/open-webui.nix"
];
imports = [
"${inputs.nixpkgs-unstable}/nixos/modules/services/misc/ollama.nix"
"${inputs.nixpkgs-unstable}/nixos/modules/services/misc/open-webui.nix"
];
services.ollama = {
enable = true;
package = pkgs.unstable.ollama;
acceleration = "rocm";
rocmOverrideGfx = "10.3.1";
};
services.open-webui = {
enable = true;
package = pkgs.unstable.open-webui;
host = "0.0.0.0";
port = 11111;
environment = {
WEBUI_AUTH = "False";
OLLAMA_API_BASE_URL = "http://127.0.0.1:${toString config.services.ollama.port}";
};
};
}